geforkt von Mirrors/Paper
SPIGOT-5803: Add Piglin/Zoglin Baby API
Dieser Commit ist enthalten in:
Ursprung
b5db08bea5
Commit
f7ff58c6c5
@ -11,6 +11,16 @@ public class CraftPiglin extends CraftMonster implements Piglin {
|
||||
super(server, entity);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isBaby() {
|
||||
return getHandle().isBaby();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setBaby(boolean flag) {
|
||||
getHandle().a(flag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public EntityPiglin getHandle() {
|
||||
return (EntityPiglin) super.getHandle();
|
||||
|
@ -11,6 +11,16 @@ public class CraftZoglin extends CraftMonster implements Zoglin {
|
||||
super(server, entity);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isBaby() {
|
||||
return getHandle().isBaby();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setBaby(boolean flag) {
|
||||
getHandle().a(flag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public EntityZoglin getHandle() {
|
||||
return (EntityZoglin) entity;
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren