Let's handle (bwhaha) the Craft* entities a bit better.
This commit is contained in:
@@ -4,7 +4,7 @@ import net.minecraft.server.EntityAnimal;
|
||||
import org.bukkit.craftbukkit.CraftServer;
|
||||
import org.bukkit.entity.Animals;
|
||||
|
||||
public class CraftAnimals extends CraftCreature implements Animals{
|
||||
public class CraftAnimals extends CraftCreature implements Animals {
|
||||
|
||||
public CraftAnimals(CraftServer server, EntityAnimal entity) {
|
||||
super(server, entity);
|
||||
@@ -15,4 +15,8 @@ public class CraftAnimals extends CraftCreature implements Animals{
|
||||
return "CraftAnimals";
|
||||
}
|
||||
|
||||
@Override
|
||||
public EntityAnimal getHandle() {
|
||||
return (EntityAnimal) entity;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user