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

By: Matthew <stteg@hotmail.com>
This commit is contained in:
Bukkit/Spigot 2022-01-01 09:58:01 +11:00
parent f976377367
commit 7454ac76ed

View File

@ -102,6 +102,20 @@ public interface AbstractHorse extends Vehicle, InventoryHolder, Tameable {
*/
public void setJumpStrength(double strength);
/**
* Gets whether the horse is currently grazing hay.
*
* @return true if eating hay
*/
boolean isEatingHaystack();
/**
* Sets whether the horse is grazing hay.
*
* @param eatingHaystack new hay grazing status
*/
void setEatingHaystack(boolean eatingHaystack);
@NotNull
@Override
public AbstractHorseInventory getInventory();