mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 12:27:59 +01:00
#278: Add API to check and set if horses are grazing hay
By: Matthew <stteg@hotmail.com>
This commit is contained in:
parent
f976377367
commit
7454ac76ed
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user