13
0
geforkt von Mirrors/Paper

Add PlayerSpawned API for Endermites

By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2018-12-10 10:39:54 +11:00
Ursprung 344ffef3d9
Commit d2a0453b60

Datei anzeigen

@ -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
}
}