@@ -1,6 +1,6 @@
|
||||
--- a/net/minecraft/server/EntityInsentient.java
|
||||
+++ b/net/minecraft/server/EntityInsentient.java
|
||||
@@ -9,6 +9,18 @@
|
||||
@@ -10,6 +10,18 @@
|
||||
import java.util.UUID;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
public abstract class EntityInsentient extends EntityLiving {
|
||||
|
||||
private static final DataWatcherObject<Byte> a = DataWatcher.a(EntityInsentient.class, DataWatcherRegistry.a);
|
||||
@@ -27,7 +39,7 @@
|
||||
@@ -28,7 +40,7 @@
|
||||
public float[] dropChanceHand;
|
||||
private final NonNullList<ItemStack> bE;
|
||||
public float[] dropChanceArmor;
|
||||
@@ -28,7 +28,7 @@
|
||||
public boolean persistent;
|
||||
private final Map<PathType, Float> bH;
|
||||
public MinecraftKey lootTableKey;
|
||||
@@ -57,6 +69,9 @@
|
||||
@@ -58,6 +70,9 @@
|
||||
this.n();
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
}
|
||||
|
||||
protected void n() {}
|
||||
@@ -110,7 +125,38 @@
|
||||
@@ -111,7 +126,38 @@
|
||||
}
|
||||
|
||||
public void setGoalTarget(@Nullable EntityLiving entityliving) {
|
||||
@@ -77,7 +77,7 @@
|
||||
}
|
||||
|
||||
public boolean b(Class<? extends EntityLiving> oclass) {
|
||||
@@ -336,11 +382,20 @@
|
||||
@@ -337,11 +383,20 @@
|
||||
|
||||
public void a(NBTTagCompound nbttagcompound) {
|
||||
super.a(nbttagcompound);
|
||||
@@ -100,7 +100,7 @@
|
||||
NBTTagList nbttaglist;
|
||||
int i;
|
||||
|
||||
@@ -394,6 +449,11 @@
|
||||
@@ -395,6 +450,11 @@
|
||||
protected MinecraftKey getDefaultLootTable() {
|
||||
return null;
|
||||
}
|
||||
@@ -112,7 +112,7 @@
|
||||
|
||||
protected void a(boolean flag, int i, DamageSource damagesource) {
|
||||
MinecraftKey minecraftkey = this.lootTableKey;
|
||||
@@ -470,11 +530,21 @@
|
||||
@@ -471,11 +531,21 @@
|
||||
ItemStack itemstack1 = this.getEquipment(enumitemslot);
|
||||
boolean flag = this.a(itemstack, itemstack1, enumitemslot);
|
||||
|
||||
@@ -135,7 +135,7 @@
|
||||
}
|
||||
|
||||
this.setSlot(enumitemslot, itemstack);
|
||||
@@ -553,11 +623,11 @@
|
||||
@@ -554,11 +624,11 @@
|
||||
double d2 = entityhuman.locZ - this.locZ;
|
||||
double d3 = d0 * d0 + d1 * d1 + d2 * d2;
|
||||
|
||||
@@ -149,7 +149,7 @@
|
||||
this.die();
|
||||
} else if (d3 < 1024.0D) {
|
||||
this.ticksFarFromPlayer = 0;
|
||||
@@ -931,12 +1001,24 @@
|
||||
@@ -932,12 +1002,24 @@
|
||||
|
||||
public final boolean b(EntityHuman entityhuman, EnumHand enumhand) {
|
||||
if (this.isLeashed() && this.getLeashHolder() == entityhuman) {
|
||||
@@ -174,7 +174,7 @@
|
||||
this.setLeashHolder(entityhuman, true);
|
||||
itemstack.subtract(1);
|
||||
return true;
|
||||
@@ -957,10 +1039,12 @@
|
||||
@@ -958,10 +1040,12 @@
|
||||
|
||||
if (this.bK) {
|
||||
if (!this.isAlive()) {
|
||||
@@ -187,7 +187,7 @@
|
||||
this.unleash(true, true);
|
||||
}
|
||||
}
|
||||
@@ -971,7 +1055,9 @@
|
||||
@@ -972,7 +1056,9 @@
|
||||
this.bK = false;
|
||||
this.leashHolder = null;
|
||||
if (!this.world.isClientSide && flag1) {
|
||||
@@ -197,7 +197,7 @@
|
||||
}
|
||||
|
||||
if (!this.world.isClientSide && flag && this.world instanceof WorldServer) {
|
||||
@@ -1041,6 +1127,7 @@
|
||||
@@ -1042,6 +1128,7 @@
|
||||
|
||||
this.setLeashHolder(entityleash, true);
|
||||
} else {
|
||||
@@ -205,7 +205,7 @@
|
||||
this.unleash(false, true);
|
||||
}
|
||||
}
|
||||
@@ -1136,7 +1223,14 @@
|
||||
@@ -1137,7 +1224,14 @@
|
||||
int j = EnchantmentManager.getFireAspectEnchantmentLevel(this);
|
||||
|
||||
if (j > 0) {
|
||||
|
||||
Reference in New Issue
Block a user