From dbb5e6e3cd35ca82efb39a44fcf6542733d2bc00 Mon Sep 17 00:00:00 2001 From: Travis Watkins Date: Thu, 26 Jun 2014 13:05:08 -0500 Subject: Update CraftBukkit to Minecraft 1.7.10 --- src/main/java/net/minecraft/server/EntitySnowman.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/main/java/net/minecraft/server/EntitySnowman.java') diff --git a/src/main/java/net/minecraft/server/EntitySnowman.java b/src/main/java/net/minecraft/server/EntitySnowman.java index 603bb70e..2811fb46 100644 --- a/src/main/java/net/minecraft/server/EntitySnowman.java +++ b/src/main/java/net/minecraft/server/EntitySnowman.java @@ -19,13 +19,13 @@ public class EntitySnowman extends EntityGolem implements IRangedEntity { this.targetSelector.a(1, new PathfinderGoalNearestAttackableTarget(this, EntityInsentient.class, 0, true, false, IMonster.a)); } - public boolean bj() { + public boolean bk() { return true; } - protected void aC() { - super.aC(); - this.getAttributeInstance(GenericAttributes.a).setValue(4.0D); + protected void aD() { + super.aD(); + this.getAttributeInstance(GenericAttributes.maxHealth).setValue(4.0D); this.getAttributeInstance(GenericAttributes.d).setValue(0.20000000298023224D); } @@ -35,7 +35,7 @@ public class EntitySnowman extends EntityGolem implements IRangedEntity { int j = MathHelper.floor(this.locY); int k = MathHelper.floor(this.locZ); - if (this.K()) { + if (this.L()) { this.damageEntity(DamageSource.DROWN, 1.0F); } @@ -83,7 +83,7 @@ public class EntitySnowman extends EntityGolem implements IRangedEntity { float f1 = MathHelper.sqrt(d0 * d0 + d2 * d2) * 0.2F; entitysnowball.shoot(d0, d1 + (double) f1, d2, 1.6F, 12.0F); - this.makeSound("random.bow", 1.0F, 1.0F / (this.aH().nextFloat() * 0.4F + 0.8F)); + this.makeSound("random.bow", 1.0F, 1.0F / (this.aI().nextFloat() * 0.4F + 0.8F)); this.world.addEntity(entitysnowball); } } -- cgit v1.2.3