Class LivingEntityUseItemEvent.Stop
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.Stop
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
- Enclosing class:
LivingEntityUseItemEvent
public static class LivingEntityUseItemEvent.Stop
extends LivingEntityUseItemEvent
implements net.neoforged.bus.api.ICancellableEvent
Fired when a player stops using an item without the use duration timing out.
Example:
Stop eating 1/2 way through
Stop defending with sword
Stop drawing bow. This case would fire the arrow
Duration on this event is how long the item had left in it's count down before 'finishing'
Canceling this event will prevent the Item from being notified that it has stopped being used,
The only vanilla item this would effect are bows, and it would cause them NOT to fire there arrow.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.neoforge.event.entity.living.LivingEntityUseItemEvent
LivingEntityUseItemEvent.Finish, LivingEntityUseItemEvent.Start, LivingEntityUseItemEvent.Stop, LivingEntityUseItemEvent.TickNested classes/interfaces inherited from class net.neoforged.neoforge.event.entity.living.LivingEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingVisibilityEventNested classes/interfaces inherited from class net.neoforged.neoforge.event.entity.EntityEvent
EntityEvent.EnteringSection, EntityEvent.EntityConstructing, EntityEvent.Size -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.neoforged.neoforge.event.entity.living.LivingEntityUseItemEvent
getDuration, getItem, setDurationMethods inherited from class net.neoforged.neoforge.event.entity.living.LivingEvent
getEntityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
Constructor Details
-
Stop
-