mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-24 16:18:02 +01:00
Add PlayerSpawned API for Endermites
This commit is contained in:
parent
068dab5be3
commit
cc1e3497db
1 changed files with 15 additions and 0 deletions
|
@ -11,6 +11,11 @@ public class CraftEndermite extends CraftMonster implements Endermite {
|
||||||
super(server, entity);
|
super(server, entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public EntityEndermite getHandle() {
|
||||||
|
return (EntityEndermite) super.getHandle();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "CraftEndermite";
|
return "CraftEndermite";
|
||||||
|
@ -20,4 +25,14 @@ public class CraftEndermite extends CraftMonster implements Endermite {
|
||||||
public EntityType getType() {
|
public EntityType getType() {
|
||||||
return EntityType.ENDERMITE;
|
return EntityType.ENDERMITE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isPlayerSpawned() {
|
||||||
|
return getHandle().l(); // PAIL
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setPlayerSpawned(boolean playerSpawned) {
|
||||||
|
getHandle().a(playerSpawned); // PAIL
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue