diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftEndermite.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftEndermite.java index 4fd49ead9b..771eea2d18 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftEndermite.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftEndermite.java @@ -11,6 +11,11 @@ public class CraftEndermite extends CraftMonster implements Endermite { super(server, entity); } + @Override + public EntityEndermite getHandle() { + return (EntityEndermite) super.getHandle(); + } + @Override public String toString() { return "CraftEndermite"; @@ -20,4 +25,14 @@ public class CraftEndermite extends CraftMonster implements Endermite { public EntityType getType() { return EntityType.ENDERMITE; } + + @Override + public boolean isPlayerSpawned() { + return getHandle().l(); // PAIL + } + + @Override + public void setPlayerSpawned(boolean playerSpawned) { + getHandle().a(playerSpawned); // PAIL + } }