13
0
geforkt von Mirrors/Paper

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

By: Matthew <stteg@hotmail.com>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2022-01-01 09:58:01 +11:00
Ursprung f976377367
Commit 7454ac76ed

Datei anzeigen

@ -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();