Add LivingEntity#clearActiveItem

This commit is contained in:
Anrza 2020-07-15 12:08:49 +02:00
parent 253e7ed6c8
commit 791377732e

View file

@ -967,6 +967,13 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity {
return this.getHandle().getUseItem().asBukkitMirror();
}
// Paper start
@Override
public void clearActiveItem() {
getHandle().stopUsingItem();
}
// Paper end
@Override
public int getActiveItemRemainingTime() {
return this.getHandle().getUseItemRemainingTicks();