mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +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();
|
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();
|
||||||
|
|
Loading…
Reference in a new issue