Add LivingEntity#clearActiveItem

This commit is contained in:
Anrza 2020-07-15 12:07:58 +02:00
parent 72ab93ca8a
commit 5fa4ae1e90

View file

@ -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.
*