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:
Ursprung
1fa87773be
Commit
bde37a649c
@ -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);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren