mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 11:18:23 +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
1 changed files with 14 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue