public abstract class LivingEntityUseItemEvent extends LivingEvent
| Modifier and Type | Class and Description | 
|---|---|
| static class  | LivingEntityUseItemEvent.FinishFired after an item has fully finished being used. | 
| static class  | LivingEntityUseItemEvent.StartFired when a player starts 'using' an item, typically when they hold right mouse. | 
| static class  | LivingEntityUseItemEvent.StopFired when a player stops using an item without the use duration timing out. | 
| static class  | LivingEntityUseItemEvent.TickFired every tick that a player is 'using' an item, see  LivingEntityUseItemEvent.Startfor 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, setup@Nonnull public ItemStack getItem()
public int getDuration()
public void setDuration(int duration)