public static class LivingEntityUseItemEvent.Tick extends LivingEntityUseItemEvent
LivingEntityUseItemEvent.Start for info.
Cancel the event, or set the duration or <= 0 to cause the player to stop using the item.LivingEntityUseItemEvent.Finish, LivingEntityUseItemEvent.Start, LivingEntityUseItemEvent.Stop, LivingEntityUseItemEvent.TickLivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEventEntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.EyeHeight| Constructor and Description |
|---|
Tick(LivingEntity entity,
ItemStack item,
int duration) |
getDuration, getItem, setDurationgetEntityLivinggetEntitypublic Tick(LivingEntity entity, @Nonnull ItemStack item, int duration)