summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/EntityIronGolem.java
diff options
context:
space:
mode:
authormbax <matt@phozop.net>2013-07-08 19:43:37 -0400
committermbax <matt@phozop.net>2013-07-08 19:43:37 -0400
commitf6a0b1e4265544eaee4e4d4adb660812b01d6a06 (patch)
tree84b161b5b99aa45602889987e03b74ad4a9a8e08 /src/main/java/net/minecraft/server/EntityIronGolem.java
parent2d9a9d8cea904deb7f748a0bbdd76a10012b3821 (diff)
downloadcraftbukkit-f6a0b1e4265544eaee4e4d4adb660812b01d6a06.tar
craftbukkit-f6a0b1e4265544eaee4e4d4adb660812b01d6a06.tar.gz
craftbukkit-f6a0b1e4265544eaee4e4d4adb660812b01d6a06.tar.lz
craftbukkit-f6a0b1e4265544eaee4e4d4adb660812b01d6a06.tar.xz
craftbukkit-f6a0b1e4265544eaee4e4d4adb660812b01d6a06.zip
Update CraftBukkit to 1.6.2
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityIronGolem.java')
-rw-r--r--src/main/java/net/minecraft/server/EntityIronGolem.java34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/main/java/net/minecraft/server/EntityIronGolem.java b/src/main/java/net/minecraft/server/EntityIronGolem.java
index 35826769..fb4f9356 100644
--- a/src/main/java/net/minecraft/server/EntityIronGolem.java
+++ b/src/main/java/net/minecraft/server/EntityIronGolem.java
@@ -31,16 +31,16 @@ public class EntityIronGolem extends EntityGolem {
this.datawatcher.a(16, Byte.valueOf((byte) 0));
}
- public boolean bb() {
+ public boolean be() {
return true;
}
- protected void bg() {
+ protected void bj() {
if (--this.bq <= 0) {
this.bq = 70 + this.random.nextInt(50);
this.bp = this.world.villages.getClosestVillage(MathHelper.floor(this.locX), MathHelper.floor(this.locY), MathHelper.floor(this.locZ), 32);
if (this.bp == null) {
- this.bN();
+ this.bR();
} else {
ChunkCoordinates chunkcoordinates = this.bp.getCenter();
@@ -48,13 +48,13 @@ public class EntityIronGolem extends EntityGolem {
}
}
- super.bg();
+ super.bj();
}
- protected void ax() {
- super.ax();
- this.a(GenericAttributes.a).a(100.0D);
- this.a(GenericAttributes.d).a(0.25D);
+ protected void ay() {
+ super.ay();
+ this.getAttributeInstance(GenericAttributes.a).setValue(100.0D);
+ this.getAttributeInstance(GenericAttributes.d).setValue(0.25D);
}
protected int h(int i) {
@@ -62,7 +62,7 @@ public class EntityIronGolem extends EntityGolem {
}
protected void n(Entity entity) {
- if (entity instanceof IMonster && this.aB().nextInt(20) == 0) {
+ if (entity instanceof IMonster && this.aC().nextInt(20) == 0) {
this.setGoalTarget((EntityLiving) entity);
}
@@ -92,12 +92,12 @@ public class EntityIronGolem extends EntityGolem {
}
public boolean a(Class oclass) {
- return this.bS() && EntityHuman.class.isAssignableFrom(oclass) ? false : super.a(oclass);
+ return this.bW() && EntityHuman.class.isAssignableFrom(oclass) ? false : super.a(oclass);
}
public void b(NBTTagCompound nbttagcompound) {
super.b(nbttagcompound);
- nbttagcompound.setBoolean("PlayerCreated", this.bS());
+ nbttagcompound.setBoolean("PlayerCreated", this.bW());
}
public void a(NBTTagCompound nbttagcompound) {
@@ -118,7 +118,7 @@ public class EntityIronGolem extends EntityGolem {
return flag;
}
- public Village bP() {
+ public Village bT() {
return this.bp;
}
@@ -131,11 +131,11 @@ public class EntityIronGolem extends EntityGolem {
return "none";
}
- protected String aK() {
+ protected String aN() {
return "mob.irongolem.hit";
}
- protected String aL() {
+ protected String aO() {
return "mob.irongolem.death";
}
@@ -164,11 +164,11 @@ public class EntityIronGolem extends EntityGolem {
// CraftBukkit end
}
- public int bR() {
+ public int bV() {
return this.bs;
}
- public boolean bS() {
+ public boolean bW() {
return (this.datawatcher.getByte(16) & 1) != 0;
}
@@ -183,7 +183,7 @@ public class EntityIronGolem extends EntityGolem {
}
public void die(DamageSource damagesource) {
- if (!this.bS() && this.killer != null && this.bp != null) {
+ if (!this.bW() && this.killer != null && this.bp != null) {
this.bp.a(this.killer.getName(), -5);
}