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
253e7ed6c8
commit
791377732e
1 changed files with 7 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue