Updated to Minecraft version 1.2.4. Updated version string to 1.2.4-R0.1.

This commit is contained in:
Nathan Adams
2012-03-22 20:39:39 +00:00
parent 8dc7417a3d
commit 9d09e7d016
94 changed files with 647 additions and 1944 deletions

View File

@@ -29,7 +29,7 @@ public class PathfinderGoalMeleeAttack extends PathfinderGoal {
}
public boolean a() {
EntityLiving entityliving = this.b.as();
EntityLiving entityliving = this.b.at();
if (entityliving == null) {
return false;
@@ -37,19 +37,19 @@ public class PathfinderGoalMeleeAttack extends PathfinderGoal {
return false;
} else {
this.c = entityliving;
this.g = this.b.ak().a(this.c);
this.g = this.b.al().a(this.c);
return this.g != null;
}
}
public boolean b() {
EntityLiving entityliving = this.b.as();
EntityLiving entityliving = this.b.at();
return entityliving == null ? false : (!this.c.isAlive() ? false : (!this.f ? !this.b.ak().e() : this.b.e(MathHelper.floor(this.c.locX), MathHelper.floor(this.c.locY), MathHelper.floor(this.c.locZ))));
return entityliving == null ? false : (!this.c.isAlive() ? false : (!this.f ? !this.b.al().e() : this.b.e(MathHelper.floor(this.c.locX), MathHelper.floor(this.c.locY), MathHelper.floor(this.c.locZ))));
}
public void c() {
this.b.ak().a(this.g, this.e);
this.b.al().a(this.g, this.e);
this.i = 0;
}
@@ -59,14 +59,14 @@ public class PathfinderGoalMeleeAttack extends PathfinderGoal {
org.bukkit.craftbukkit.event.CraftEventFactory.callEntityTargetEvent(b, null, reason);
// CraftBukkit end
this.c = null;
this.b.ak().f();
this.b.al().f();
}
public void e() {
this.b.getControllerLook().a(this.c, 30.0F, 30.0F);
if ((this.f || this.b.al().canSee(this.c)) && --this.i <= 0) {
this.i = 4 + this.b.am().nextInt(7);
this.b.ak().a(this.c, this.e);
if ((this.f || this.b.am().canSee(this.c)) && --this.i <= 0) {
this.i = 4 + this.b.an().nextInt(7);
this.b.al().a(this.c, this.e);
}
this.d = Math.max(this.d - 1, 0);