mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-04-13 09:41:09 +00:00
#959: Add access to current item's remaining ticks
This commit is contained in:
parent
c4fdadb0c9
commit
819eef734f
1 changed files with 16 additions and 0 deletions
|
@ -196,6 +196,22 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource
|
||||||
*/
|
*/
|
||||||
public void setMaximumAir(int ticks);
|
public void setMaximumAir(int ticks);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the number of ticks remaining for the current item's usage.
|
||||||
|
*
|
||||||
|
* @return The number of ticks remaining
|
||||||
|
*/
|
||||||
|
public int getItemInUseTicks();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the number of ticks that remain for the current item's usage.
|
||||||
|
* Applies to items that take time to use, like eating food, drawing a bow,
|
||||||
|
* or throwing a trident.
|
||||||
|
*
|
||||||
|
* @param ticks The number of ticks remaining
|
||||||
|
*/
|
||||||
|
public void setItemInUseTicks(int ticks);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the time in ticks until the next arrow leaves the entity's body.
|
* Gets the time in ticks until the next arrow leaves the entity's body.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue