summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-12-10 10:39:54 +1100
committermd_5 <git@md-5.net>2018-12-10 10:39:54 +1100
commitcc1e3497dba8a747701e196c4824970cefc83642 (patch)
treef9eb5c8636a22eeffa1b3e5b3be42d69f0e86b0e
parent068dab5be3e2f9f5086b0b61522a30eb8302c11c (diff)
downloadcraftbukkit-cc1e3497dba8a747701e196c4824970cefc83642.tar
craftbukkit-cc1e3497dba8a747701e196c4824970cefc83642.tar.gz
craftbukkit-cc1e3497dba8a747701e196c4824970cefc83642.tar.lz
craftbukkit-cc1e3497dba8a747701e196c4824970cefc83642.tar.xz
craftbukkit-cc1e3497dba8a747701e196c4824970cefc83642.zip
Add PlayerSpawned API for Endermites
-rw-r--r--src/main/java/org/bukkit/craftbukkit/entity/CraftEndermite.java15
1 files changed, 15 insertions, 0 deletions
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
@@ -12,6 +12,11 @@ public class CraftEndermite extends CraftMonster implements Endermite {
}
@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
+ }
}