summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/EntitySheep.java
diff options
context:
space:
mode:
authorTravis Watkins <amaranth@ubuntu.com>2012-10-24 22:53:23 -0500
committerEvilSeph <evilseph@gmail.com>2012-10-27 22:19:03 -0400
commit60819c6693daf19dde68b04af38a4fee8c7da988 (patch)
treee7bd96a07f0e9d9f1f6b2721ddd1bb5dd71eaf48 /src/main/java/net/minecraft/server/EntitySheep.java
parentb9a72531b6e2ccc84bd021bca421255a957d96f7 (diff)
downloadcraftbukkit-60819c6693daf19dde68b04af38a4fee8c7da988.tar
craftbukkit-60819c6693daf19dde68b04af38a4fee8c7da988.tar.gz
craftbukkit-60819c6693daf19dde68b04af38a4fee8c7da988.tar.lz
craftbukkit-60819c6693daf19dde68b04af38a4fee8c7da988.tar.xz
craftbukkit-60819c6693daf19dde68b04af38a4fee8c7da988.zip
Update CraftBukkit to Minecraft 1.4(.2).
Diffstat (limited to 'src/main/java/net/minecraft/server/EntitySheep.java')
-rw-r--r--src/main/java/net/minecraft/server/EntitySheep.java33
1 files changed, 21 insertions, 12 deletions
diff --git a/src/main/java/net/minecraft/server/EntitySheep.java b/src/main/java/net/minecraft/server/EntitySheep.java
index d74cf4d7..aadad334 100644
--- a/src/main/java/net/minecraft/server/EntitySheep.java
+++ b/src/main/java/net/minecraft/server/EntitySheep.java
@@ -31,21 +31,21 @@ public class EntitySheep extends EntityAnimal {
this.goalSelector.a(8, new PathfinderGoalRandomLookaround(this));
}
- protected boolean aV() {
+ protected boolean bb() {
return true;
}
- protected void bc() {
+ protected void bi() {
this.e = this.f.f();
- super.bc();
+ super.bi();
}
- public void d() {
+ public void c() {
if (this.world.isStatic) {
this.e = Math.max(0, this.e - 1);
}
- super.d();
+ super.c();
}
public int getMaxHealth() {
@@ -100,6 +100,7 @@ public class EntitySheep extends EntityAnimal {
}
itemstack.damage(1, entityhuman);
+ this.world.makeSound(this, "mob.sheep.shear", 1.0F, 1.0F);
}
return super.c(entityhuman);
@@ -117,16 +118,20 @@ public class EntitySheep extends EntityAnimal {
this.setColor(nbttagcompound.getByte("Color"));
}
- protected String aQ() {
- return "mob.sheep";
+ protected String aW() {
+ return "mob.sheep.say";
}
- protected String aR() {
- return "mob.sheep";
+ protected String aX() {
+ return "mob.sheep.say";
}
- protected String aS() {
- return "mob.sheep";
+ protected String aY() {
+ return "mob.sheep.say";
+ }
+
+ protected void a(int i, int j, int k, int l) {
+ this.world.makeSound(this, "mob.sheep.step", 0.15F, 1.0F);
}
public int getColor() {
@@ -172,7 +177,7 @@ public class EntitySheep extends EntityAnimal {
return entitysheep1;
}
- public void aA() {
+ public void aG() {
// CraftBukkit start
SheepRegrowWoolEvent event = new SheepRegrowWoolEvent((org.bukkit.entity.Sheep) this.getBukkitEntity());
this.world.getServer().getPluginManager().callEvent(event);
@@ -192,4 +197,8 @@ public class EntitySheep extends EntityAnimal {
this.setAge(i);
}
}
+
+ public void bD() {
+ this.setColor(a(this.world.random));
+ }
}