mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Port to new mc-dev format.
This commit is contained in:
1 parent
d0cd8c6cc7
commit
df69047324
96 files changed
+8809
-9406
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user