mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 23:38:25 +01:00
Add LivingEntity#clearActiveItem
This commit is contained in:
parent
72ab93ca8a
commit
5fa4ae1e90
1 changed files with 5 additions and 0 deletions
|
@ -1071,6 +1071,11 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource
|
||||||
*/
|
*/
|
||||||
org.bukkit.inventory.@NotNull ItemStack getActiveItem();
|
org.bukkit.inventory.@NotNull ItemStack getActiveItem();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Interrupts any ongoing active "usage" or consumption or an item.
|
||||||
|
*/
|
||||||
|
void clearActiveItem();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the remaining number of ticks for {@link #getActiveItem()}'s usage.
|
* Gets the remaining number of ticks for {@link #getActiveItem()}'s usage.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue