diff options
author | Erik Broes <erikbroes@grum.nl> | 2011-01-30 16:15:17 +0100 |
---|---|---|
committer | Erik Broes <erikbroes@grum.nl> | 2011-01-30 16:15:24 +0100 |
commit | b2a0c5a2ae216b1e778d5e03fd97dd9ebaf112a1 (patch) | |
tree | 6fd5368cbcc0f2b922570827034d3f57a994b66f /src/main/java/net/minecraft/server/EntityCow.java | |
parent | 75ba9a0f2570798d9012e4f4377d903cd2904785 (diff) | |
download | craftbukkit-b2a0c5a2ae216b1e778d5e03fd97dd9ebaf112a1.tar craftbukkit-b2a0c5a2ae216b1e778d5e03fd97dd9ebaf112a1.tar.gz craftbukkit-b2a0c5a2ae216b1e778d5e03fd97dd9ebaf112a1.tar.lz craftbukkit-b2a0c5a2ae216b1e778d5e03fd97dd9ebaf112a1.tar.xz craftbukkit-b2a0c5a2ae216b1e778d5e03fd97dd9ebaf112a1.zip |
Reworked getEntity; Hi instanceof, bay 16 classes
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityCow.java')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityCow.java | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/src/main/java/net/minecraft/server/EntityCow.java b/src/main/java/net/minecraft/server/EntityCow.java deleted file mode 100644 index 6a672695..00000000 --- a/src/main/java/net/minecraft/server/EntityCow.java +++ /dev/null @@ -1,59 +0,0 @@ -package net.minecraft.server; - -// CraftBukkit start -import org.bukkit.craftbukkit.CraftServer; -import org.bukkit.craftbukkit.entity.CraftCow; -// CraftBukkit end - -public class EntityCow extends EntityAnimal { - - public EntityCow(World world) { - super(world); - this.texture = "/mob/cow.png"; - this.a(0.9F, 1.3F); - - // CraftBukkit start - CraftServer server = ((WorldServer) this.world).getServer(); - this.bukkitEntity = new CraftCow(server, this); - // CraftBukkit end - } - - public void a(NBTTagCompound nbttagcompound) { - super.a(nbttagcompound); - } - - public void b(NBTTagCompound nbttagcompound) { - super.b(nbttagcompound); - } - - protected String e() { - return "mob.cow"; - } - - protected String f() { - return "mob.cowhurt"; - } - - protected String g() { - return "mob.cowhurt"; - } - - protected float i() { - return 0.4F; - } - - protected int h() { - return Item.LEATHER.id; - } - - public boolean a(EntityHuman entityhuman) { - ItemStack itemstack = entityhuman.inventory.e(); - - if (itemstack != null && itemstack.id == Item.BUCKET.id) { - entityhuman.inventory.a(entityhuman.inventory.c, new ItemStack(Item.MILK_BUCKET)); - return true; - } else { - return false; - } - } -} |