From cc1e3497dba8a747701e196c4824970cefc83642 Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 10 Dec 2018 10:39:54 +1100 Subject: Add PlayerSpawned API for Endermites --- .../org/bukkit/craftbukkit/entity/CraftEndermite.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src') diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftEndermite.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftEndermite.java index 4fd49ead..771eea2d 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 + } } -- cgit v1.2.3