Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 20:40:08 +01:00
Add PlayerSpawned API for Endermites
Dieser Commit ist enthalten in:
Ursprung
068dab5be3
Commit
cc1e3497db
@ -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
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren