public abstract class LivingEntityUseItemEvent extends LivingEvent
| Modifier and Type | Class and Description |
|---|---|
static class |
LivingEntityUseItemEvent.Finish
Fired after an item has fully finished being used.
|
static class |
LivingEntityUseItemEvent.Start
Fired when a player starts 'using' an item, typically when they hold right mouse.
|
static class |
LivingEntityUseItemEvent.Stop
Fired when a player stops using an item without the use duration timing out.
|
static class |
LivingEntityUseItemEvent.Tick
Fired every tick that a player is 'using' an item, see
LivingEntityUseItemEvent.Start for info. |
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEventEntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructingEvent.HasResult, Event.Result| Modifier and Type | Method and Description |
|---|---|
int |
getDuration() |
ItemStack |
getItem() |
void |
setDuration(int duration) |
getEntityLivinggetEntitygetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setuppublic ItemStack getItem()
public int getDuration()
public void setDuration(int duration)