Class LivingEntityUseItemEvent.Start
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.entity.EntityEvent
net.neoforged.neoforge.event.entity.living.LivingEvent
net.neoforged.neoforge.event.entity.living.LivingEntityUseItemEvent
net.neoforged.neoforge.event.entity.living.LivingEntityUseItemEvent.Start
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
- Enclosing class:
LivingEntityUseItemEvent
public static class LivingEntityUseItemEvent.Start
extends LivingEntityUseItemEvent
implements net.neoforged.bus.api.ICancellableEvent
Fired when a player starts 'using' an item, typically when they hold right mouse.
Examples:
Drawing a bow
Eating Food
Drinking Potions/Milk
Guarding with a sword
Cancel the event, or set the duration or <= 0 to prevent it from processing.
-
Nested Class Summary
Nested classes/interfaces inherited from class LivingEntityUseItemEvent
LivingEntityUseItemEvent.Finish, LivingEntityUseItemEvent.Start, LivingEntityUseItemEvent.Stop, LivingEntityUseItemEvent.TickNested classes/interfaces inherited from class LivingEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingVisibilityEventNested classes/interfaces inherited from class EntityEvent
EntityEvent.EnteringSection, EntityEvent.EntityConstructing, EntityEvent.Size -
Constructor Summary
ConstructorsConstructorDescriptionStart(LivingEntity entity, ItemStack item, InteractionHand hand, int duration) -
Method Summary
Methods inherited from class LivingEntityUseItemEvent
getDuration, getHand, getItem, setDurationMethods inherited from class LivingEvent
getEntityMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
Constructor Details
-
Start
-