mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-20 23:46:57 +01:00
#378: Add API to check and set if horses are grazing hay
By: Matthew <stteg@hotmail.com>
This commit is contained in:
parent
1fa87773be
commit
bde37a649c
1 changed files with 10 additions and 0 deletions
|
@ -97,6 +97,16 @@ public abstract class CraftAbstractHorse extends CraftAnimals implements Abstrac
|
|||
getHandle().setOwnerUUID(uuid);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEatingHaystack() {
|
||||
return getHandle().isEating();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setEatingHaystack(boolean eatingHaystack) {
|
||||
getHandle().setEating(eatingHaystack);
|
||||
}
|
||||
|
||||
@Override
|
||||
public AbstractHorseInventory getInventory() {
|
||||
return new CraftInventoryAbstractHorse(getHandle().inventory);
|
||||
|
|
Loading…
Reference in a new issue