summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/EntityWaterAnimal.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityWaterAnimal.java')
-rw-r--r--src/main/java/net/minecraft/server/EntityWaterAnimal.java38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/EntityWaterAnimal.java b/src/main/java/net/minecraft/server/EntityWaterAnimal.java
new file mode 100644
index 00000000..cf9c3bfa
--- /dev/null
+++ b/src/main/java/net/minecraft/server/EntityWaterAnimal.java
@@ -0,0 +1,38 @@
+package net.minecraft.server;
+
+// CraftBukkit start
+import org.bukkit.craftbukkit.CraftServer;
+import org.bukkit.craftbukkit.entity.CraftWaterMob;
+// CraftBukkit stop
+
+public class EntityWaterAnimal extends EntityCreature implements IAnimal {
+
+ public EntityWaterAnimal(World world) {
+ super(world);
+
+ // CraftBukkit start
+ CraftServer server = ((WorldServer) this.world).getServer();
+ this.bukkitEntity = new CraftWaterMob(server, this);
+ // CraftBukkit end
+ }
+
+ public boolean d_() {
+ return true;
+ }
+
+ public void a(NBTTagCompound nbttagcompound) {
+ super.a(nbttagcompound);
+ }
+
+ public void b(NBTTagCompound nbttagcompound) {
+ super.b(nbttagcompound);
+ }
+
+ public boolean b() {
+ return this.world.a(this.boundingBox);
+ }
+
+ public int c() {
+ return 120;
+ }
+}