diff options
author | Travis Watkins <amaranth@ubuntu.com> | 2012-11-06 06:05:28 -0600 |
---|---|---|
committer | Travis Watkins <amaranth@ubuntu.com> | 2012-11-13 16:09:52 -0600 |
commit | 7f7192f8fd8357e664e7e2d6e7c5f65fd0fcd2f7 (patch) | |
tree | 843902ff94d82e86f40d7e0af1ac838fee859e75 /src/main/java/net/minecraft/server/EntityPig.java | |
parent | a0c3b4f9d1b403fa64230f22b5dd3222181ba646 (diff) | |
download | craftbukkit-7f7192f8fd8357e664e7e2d6e7c5f65fd0fcd2f7.tar craftbukkit-7f7192f8fd8357e664e7e2d6e7c5f65fd0fcd2f7.tar.gz craftbukkit-7f7192f8fd8357e664e7e2d6e7c5f65fd0fcd2f7.tar.lz craftbukkit-7f7192f8fd8357e664e7e2d6e7c5f65fd0fcd2f7.tar.xz craftbukkit-7f7192f8fd8357e664e7e2d6e7c5f65fd0fcd2f7.zip |
Update CraftBukkit to Minecraft 1.4.4.
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityPig.java')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityPig.java | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/src/main/java/net/minecraft/server/EntityPig.java b/src/main/java/net/minecraft/server/EntityPig.java index 62e9c14f..c1ee3638 100644 --- a/src/main/java/net/minecraft/server/EntityPig.java +++ b/src/main/java/net/minecraft/server/EntityPig.java @@ -25,7 +25,7 @@ public class EntityPig extends EntityAnimal { this.goalSelector.a(8, new PathfinderGoalRandomLookaround(this)); } - public boolean bb() { + public boolean be() { return true; } @@ -33,12 +33,12 @@ public class EntityPig extends EntityAnimal { return 10; } - protected void bi() { - super.bi(); + protected void bl() { + super.bl(); } - public boolean bF() { - ItemStack itemstack = ((EntityHuman) this.passenger).bA(); + public boolean bI() { + ItemStack itemstack = ((EntityHuman) this.passenger).bD(); return itemstack != null && itemstack.id == Item.CARROT_STICK.id; } @@ -58,24 +58,24 @@ public class EntityPig extends EntityAnimal { this.setSaddle(nbttagcompound.getBoolean("Saddle")); } - protected String aW() { + protected String aY() { return "mob.pig.say"; } - protected String aX() { + protected String aZ() { return "mob.pig.say"; } - protected String aY() { + protected String ba() { return "mob.pig.death"; } protected void a(int i, int j, int k, int l) { - this.world.makeSound(this, "mob.pig.step", 0.15F, 1.0F); + this.makeSound("mob.pig.step", 0.15F, 1.0F); } - public boolean c(EntityHuman entityhuman) { - if (super.c(entityhuman)) { + public boolean a(EntityHuman entityhuman) { + if (super.a(entityhuman)) { return true; } else if (this.hasSaddle() && !this.world.isStatic && (this.passenger == null || this.passenger == entityhuman)) { entityhuman.mount(this); @@ -146,7 +146,7 @@ public class EntityPig extends EntityAnimal { } } - public EntityAnimal createChild(EntityAnimal entityanimal) { + public EntityPig b(EntityAgeable entityageable) { return new EntityPig(this.world); } @@ -157,4 +157,8 @@ public class EntityPig extends EntityAnimal { public PathfinderGoalPassengerCarrotStick n() { return this.d; } + + public EntityAgeable createChild(EntityAgeable entityageable) { + return this.b(entityageable); + } } |