diff options
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityCreeper.java')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityCreeper.java | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/main/java/net/minecraft/server/EntityCreeper.java b/src/main/java/net/minecraft/server/EntityCreeper.java index 31743fe1..b31231a0 100644 --- a/src/main/java/net/minecraft/server/EntityCreeper.java +++ b/src/main/java/net/minecraft/server/EntityCreeper.java @@ -37,7 +37,7 @@ public class EntityCreeper extends EntityMonster { protected void b(Entity entity, float f) { if (!this.world.isStatic) { if (this.fuseTicks > 0) { - this.e(-1); + this.b(-1); --this.fuseTicks; if (this.fuseTicks < 0) { this.fuseTicks = 0; @@ -46,10 +46,10 @@ public class EntityCreeper extends EntityMonster { } } - public void m_() { + public void s_() { this.b = this.fuseTicks; if (this.world.isStatic) { - int i = this.x(); + int i = this.w(); if (i > 0 && this.fuseTicks == 0) { this.world.makeSound(this, "random.fuse", 1.0F, 0.5F); @@ -65,9 +65,9 @@ public class EntityCreeper extends EntityMonster { } } - super.m_(); + super.s_(); if (this.target == null && this.fuseTicks > 0) { - this.e(-1); + this.b(-1); --this.fuseTicks; if (this.fuseTicks < 0) { this.fuseTicks = 0; @@ -75,27 +75,27 @@ public class EntityCreeper extends EntityMonster { } } - protected String h() { + protected String i() { return "mob.creeper"; } - protected String i() { + protected String j() { return "mob.creeperdeath"; } - public void die(Entity entity) { - super.die(entity); - if (entity instanceof EntitySkeleton) { + public void die(DamageSource damagesource) { + super.die(damagesource); + if (damagesource.a() instanceof EntitySkeleton) { this.b(Item.GOLD_RECORD.id + this.random.nextInt(2), 1); } } protected void a(Entity entity, float f) { if (!this.world.isStatic) { - int i = this.x(); + int i = this.w(); if ((i > 0 || f >= 3.0F) && (i <= 0 || f >= 7.0F)) { - this.e(-1); + this.b(-1); --this.fuseTicks; if (this.fuseTicks < 0) { this.fuseTicks = 0; @@ -105,7 +105,7 @@ public class EntityCreeper extends EntityMonster { this.world.makeSound(this, "random.fuse", 1.0F, 0.5F); } - this.e(1); + this.b(1); ++this.fuseTicks; if (this.fuseTicks >= 30) { // CraftBukkit start @@ -132,15 +132,15 @@ public class EntityCreeper extends EntityMonster { return this.datawatcher.a(17) == 1; } - protected int j() { + protected int k() { return Item.SULPHUR.id; } - private int x() { + private int w() { return this.datawatcher.a(16); } - private void e(int i) { + private void b(int i) { this.datawatcher.watch(16, Byte.valueOf((byte) i)); } |