Add LivingEntity#clearActiveItem
This commit is contained in:
@@ -1071,6 +1071,11 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource
|
||||
*/
|
||||
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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user