From 9d09e7d0167326d4169f734e4b6d04c54d767507 Mon Sep 17 00:00:00 2001 From: Nathan Adams Date: Thu, 22 Mar 2012 20:39:39 +0000 Subject: Updated to Minecraft version 1.2.4. Updated version string to 1.2.4-R0.1. --- .../java/net/minecraft/server/EntityCreature.java | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/main/java/net/minecraft/server/EntityCreature.java') diff --git a/src/main/java/net/minecraft/server/EntityCreature.java b/src/main/java/net/minecraft/server/EntityCreature.java index b865cbd5..741e755e 100644 --- a/src/main/java/net/minecraft/server/EntityCreature.java +++ b/src/main/java/net/minecraft/server/EntityCreature.java @@ -17,7 +17,7 @@ public abstract class EntityCreature extends EntityLiving { super(world); } - protected boolean E() { + protected boolean F() { return false; } @@ -27,7 +27,7 @@ public abstract class EntityCreature extends EntityLiving { --this.f; } - this.e = this.E(); + this.e = this.F(); float f = 16.0F; if (this.target == null) { @@ -77,12 +77,12 @@ public abstract class EntityCreature extends EntityLiving { if (!this.e && this.target != null && (this.pathEntity == null || this.random.nextInt(20) == 0)) { this.pathEntity = this.world.findPath(this, this.target, f, true, false, false, true); } else if (!this.e && (this.pathEntity == null && this.random.nextInt(180) == 0 || this.random.nextInt(120) == 0 || this.f > 0) && this.aV < 100) { - this.F(); + this.G(); } int i = MathHelper.floor(this.boundingBox.b + 0.5D); - boolean flag = this.aT(); - boolean flag1 = this.aU(); + boolean flag = this.aU(); + boolean flag1 = this.aV(); this.pitch = 0.0F; if (this.pathEntity != null && this.random.nextInt(100) != 0) { @@ -146,7 +146,7 @@ public abstract class EntityCreature extends EntityLiving { this.a(this.target, 30.0F, 30.0F); } - if (this.positionChanged && !this.G()) { + if (this.positionChanged && !this.H()) { this.aZ = true; } @@ -161,7 +161,7 @@ public abstract class EntityCreature extends EntityLiving { } } - protected void F() { + protected void G() { // MethodProfiler.a("stroll"); // CraftBukkit - not in production code boolean flag = false; int i = -1; @@ -211,7 +211,7 @@ public abstract class EntityCreature extends EntityLiving { return super.canSpawn() && this.a(i, j, k) >= 0.0F; } - public boolean G() { + public boolean H() { return this.pathEntity != null; } @@ -219,7 +219,7 @@ public abstract class EntityCreature extends EntityLiving { this.pathEntity = pathentity; } - public Entity H() { + public Entity I() { return this.target; } @@ -227,11 +227,11 @@ public abstract class EntityCreature extends EntityLiving { this.target = entity; } - protected float D_() { + protected float J() { if (this.c_()) { return 1.0F; } else { - float f = super.D_(); + float f = super.J(); if (this.f > 0) { f *= 2.0F; -- cgit v1.2.3