summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/PathfinderGoalMeleeAttack.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/net/minecraft/server/PathfinderGoalMeleeAttack.java')
-rw-r--r--src/main/java/net/minecraft/server/PathfinderGoalMeleeAttack.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/main/java/net/minecraft/server/PathfinderGoalMeleeAttack.java b/src/main/java/net/minecraft/server/PathfinderGoalMeleeAttack.java
index 283e5f30..d5f6cb29 100644
--- a/src/main/java/net/minecraft/server/PathfinderGoalMeleeAttack.java
+++ b/src/main/java/net/minecraft/server/PathfinderGoalMeleeAttack.java
@@ -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);