Class LivingEntityUseItemEvent.Tick
- java.lang.Object
-
- net.minecraftforge.eventbus.api.Event
-
- net.minecraftforge.event.entity.EntityEvent
-
- net.minecraftforge.event.entity.living.LivingEvent
-
- net.minecraftforge.event.entity.living.LivingEntityUseItemEvent
-
- net.minecraftforge.event.entity.living.LivingEntityUseItemEvent.Tick
-
- Enclosing class:
- LivingEntityUseItemEvent
public static class LivingEntityUseItemEvent.Tick extends LivingEntityUseItemEvent
Fired every tick that a player is 'using' an item, seeLivingEntityUseItemEvent.Start
for info. Cancel the event, or set the duration or <= 0 to cause the player to stop using the item.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.living.LivingEntityUseItemEvent
LivingEntityUseItemEvent.Finish, LivingEntityUseItemEvent.Start, LivingEntityUseItemEvent.Stop, LivingEntityUseItemEvent.Tick
-
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.living.LivingEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent, LivingEvent.LivingVisibilityEvent
-
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.EntityEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.Size
-
-
Constructor Summary
Constructors Constructor Description Tick(LivingEntity entity, ItemStack item, int duration)
-
Method Summary
-
Methods inherited from class net.minecraftforge.event.entity.living.LivingEntityUseItemEvent
getDuration, getItem, setDuration
-
Methods inherited from class net.minecraftforge.event.entity.living.LivingEvent
getEntityLiving
-
Methods inherited from class net.minecraftforge.event.entity.EntityEvent
getEntity
-
-
-
-
Constructor Detail
-
Tick
public Tick(LivingEntity entity, @Nonnull ItemStack item, int duration)
-
-