Update for Minecraft 1.8

This commit is contained in:
Dinnerbone
2011-09-15 01:23:52 +01:00
parent 54bcd1c1f3
commit 5b2c774edc
107 changed files with 4415 additions and 3504 deletions

View File

@@ -17,11 +17,7 @@ public class EntitySheep extends EntityAnimal {
this.datawatcher.a(16, new Byte((byte) 0));
}
public boolean damageEntity(Entity entity, int i) {
return super.damageEntity(entity, i);
}
protected void q() {
protected void a(boolean flag) {
// CraftBukkit start - whole method
java.util.List<org.bukkit.inventory.ItemStack> loot = new java.util.ArrayList<org.bukkit.inventory.ItemStack>();
@@ -41,11 +37,11 @@ public class EntitySheep extends EntityAnimal {
// CraftBukkit end
}
protected int j() {
protected int k() {
return Block.WOOL.id;
}
public boolean a(EntityHuman entityhuman) {
public boolean b(EntityHuman entityhuman) {
ItemStack itemstack = entityhuman.inventory.getItemInHand();
if (itemstack != null && itemstack.id == Item.SHEARS.id && !this.isSheared()) {
@@ -80,10 +76,6 @@ public class EntitySheep extends EntityAnimal {
this.setColor(nbttagcompound.c("Color"));
}
protected String g() {
return "mob.sheep";
}
protected String h() {
return "mob.sheep";
}
@@ -92,6 +84,10 @@ public class EntitySheep extends EntityAnimal {
return "mob.sheep";
}
protected String j() {
return "mob.sheep";
}
public int getColor() {
return this.datawatcher.a(16) & 15;
}