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:
Ursprung
f976377367
Commit
7454ac76ed
@ -102,6 +102,20 @@ public interface AbstractHorse extends Vehicle, InventoryHolder, Tameable {
|
|||||||
*/
|
*/
|
||||||
public void setJumpStrength(double strength);
|
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
|
@NotNull
|
||||||
@Override
|
@Override
|
||||||
public AbstractHorseInventory getInventory();
|
public AbstractHorseInventory getInventory();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren