13
0
geforkt von Mirrors/Paper

#378: Add API to check and set if horses are grazing hay

By: Matthew <stteg@hotmail.com>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2022-01-01 09:58:04 +11:00
Ursprung 1fa87773be
Commit bde37a649c

Datei anzeigen

@ -97,6 +97,16 @@ public abstract class CraftAbstractHorse extends CraftAnimals implements Abstrac
getHandle().setOwnerUUID(uuid); getHandle().setOwnerUUID(uuid);
} }
@Override
public boolean isEatingHaystack() {
return getHandle().isEating();
}
@Override
public void setEatingHaystack(boolean eatingHaystack) {
getHandle().setEating(eatingHaystack);
}
@Override @Override
public AbstractHorseInventory getInventory() { public AbstractHorseInventory getInventory() {
return new CraftInventoryAbstractHorse(getHandle().inventory); return new CraftInventoryAbstractHorse(getHandle().inventory);