mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-25 09:41:29 +01:00
SPIGOT-5803: Add Piglin/Zoglin Baby API
By: md_5 <git@md-5.net>
This commit is contained in:
parent
a955c5cbab
commit
27d67a7a4e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user