diff options
author | md_5 <git@md-5.net> | 2018-12-10 10:39:54 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-12-10 10:39:54 +1100 |
commit | cc1e3497dba8a747701e196c4824970cefc83642 (patch) | |
tree | f9eb5c8636a22eeffa1b3e5b3be42d69f0e86b0e /src/main/java/org/bukkit | |
parent | 068dab5be3e2f9f5086b0b61522a30eb8302c11c (diff) | |
download | craftbukkit-cc1e3497dba8a747701e196c4824970cefc83642.tar craftbukkit-cc1e3497dba8a747701e196c4824970cefc83642.tar.gz craftbukkit-cc1e3497dba8a747701e196c4824970cefc83642.tar.lz craftbukkit-cc1e3497dba8a747701e196c4824970cefc83642.tar.xz craftbukkit-cc1e3497dba8a747701e196c4824970cefc83642.zip |
Add PlayerSpawned API for Endermites
Diffstat (limited to 'src/main/java/org/bukkit')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/entity/CraftEndermite.java | 15 |
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 + } } |