Add LivingEntity#clearActiveItem
This commit is contained in:
@@ -967,6 +967,13 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity {
|
|||||||
return this.getHandle().getUseItem().asBukkitMirror();
|
return this.getHandle().getUseItem().asBukkitMirror();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Paper start
|
||||||
|
@Override
|
||||||
|
public void clearActiveItem() {
|
||||||
|
getHandle().stopUsingItem();
|
||||||
|
}
|
||||||
|
// Paper end
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getActiveItemRemainingTime() {
|
public int getActiveItemRemainingTime() {
|
||||||
return this.getHandle().getUseItemRemainingTicks();
|
return this.getHandle().getUseItemRemainingTicks();
|
||||||
|
|||||||
Reference in New Issue
Block a user