Update CraftBukkit to Minecraft 1.7.10

This commit is contained in:
Travis Watkins committed 2014-07-08 14:31:10 -05:00
1 parent a8628fd645
commit dbb5e6e3cd
182 files changed
+1252 -1248

No files matched your search

@@ -50,9 +50,9 @@ public abstract class EntityInsentient extends EntityLiving {
}
}
protected void aC() {
super.aC();
this.bb().b(GenericAttributes.b).setValue(16.0D);
protected void aD() {
super.aD();
this.getAttributeMap().b(GenericAttributes.b).setValue(16.0D);
}
public ControllerLook getControllerLook() {
@@ -103,12 +103,12 @@ public abstract class EntityInsentient extends EntityLiving {
String s = this.t();
if (s != null) {
this.makeSound(s, this.be(), this.bf());
this.makeSound(s, this.bf(), this.bg());
}
}
public void B() {
super.B();
public void C() {
super.C();
this.world.methodProfiler.a("mobBaseTick");
if (this.isAlive() && this.random.nextInt(1000) < this.a_++) {
this.a_ = -this.q();
@@ -154,7 +154,7 @@ public abstract class EntityInsentient extends EntityLiving {
}
protected float f(float f, float f1) {
if (this.bj()) {
if (this.bk()) {
this.bn.a();
return f1;
} else {
@@ -167,7 +167,7 @@ public abstract class EntityInsentient extends EntityLiving {
}
protected Item getLoot() {
return Item.d(0);
return Item.getById(0);
}
protected void dropDeathLoot(boolean flag, int i) {
@@ -362,7 +362,7 @@ public abstract class EntityInsentient extends EntityLiving {
this.world.methodProfiler.b();
}
protected boolean bj() {
protected boolean bk() {
return false;
}
@@ -395,7 +395,7 @@ public abstract class EntityInsentient extends EntityLiving {
}
}
protected void bm() {
protected void bn() {
++this.aU;
this.world.methodProfiler.a("checkDespawn");
this.w();
@@ -413,7 +413,7 @@ public abstract class EntityInsentient extends EntityLiving {
this.navigation.f();
this.world.methodProfiler.b();
this.world.methodProfiler.a("mob tick");
this.bo();
this.bp();
this.world.methodProfiler.b();
this.world.methodProfiler.a("controls");
this.world.methodProfiler.a("move");
@@ -426,8 +426,8 @@ public abstract class EntityInsentient extends EntityLiving {
this.world.methodProfiler.b();
}
protected void bp() {
super.bp();
protected void bq() {
super.bq();
this.bd = 0.0F;
this.be = 0.0F;
this.w();
@@ -445,7 +445,7 @@ public abstract class EntityInsentient extends EntityLiving {
}
if (this.bu != null) {
this.a(this.bu, 10.0F, (float) this.bv());
this.a(this.bu, 10.0F, (float) this.x());
if (this.g-- <= 0 || this.bu.dead || this.bu.f((Entity) this) > (double) (f * f)) {
this.bu = null;
}
@@ -458,15 +458,15 @@ public abstract class EntityInsentient extends EntityLiving {
this.pitch = this.f;
}
boolean flag = this.L();
boolean flag1 = this.O();
boolean flag = this.M();
boolean flag1 = this.P();
if (flag || flag1) {
this.bc = this.random.nextFloat() < 0.8F;
}
}
public int bv() {
public int x() {
return 40;
}
@@ -513,7 +513,7 @@ public abstract class EntityInsentient extends EntityLiving {
return 4;
}
public int aw() {
public int ax() {
if (this.getGoalTarget() == null) {
return 3;
} else {
@@ -528,7 +528,7 @@ public abstract class EntityInsentient extends EntityLiving {
}
}
public ItemStack bd() {
public ItemStack be() {
return this.equipment[0];
}
@@ -695,8 +695,8 @@ public abstract class EntityInsentient extends EntityLiving {
protected void bD() {
float f = this.world.b(this.locX, this.locY, this.locZ);
if (this.bd() != null && this.random.nextFloat() < 0.25F * f) {
EnchantmentManager.a(this.random, this.bd(), (int) (5.0F + f * (float) this.random.nextInt(18)));
if (this.be() != null && this.random.nextFloat() < 0.25F * f) {
EnchantmentManager.a(this.random, this.be(), (int) (5.0F + f * (float) this.random.nextInt(18)));
}
for (int i = 0; i < 4; ++i) {
@@ -708,7 +708,7 @@ public abstract class EntityInsentient extends EntityLiving {
}
}
public GroupDataEntity a(GroupDataEntity groupdataentity) {
public GroupDataEntity prepare(GroupDataEntity groupdataentity) {
this.getAttributeInstance(GenericAttributes.b).a(new AttributeModifier("Random spawn bonus", this.random.nextGaussian() * 0.05D, 1));
return groupdataentity;
}