类 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
- 所有已实现的接口:
net.neoforged.bus.api.ICancellableEvent
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.
-
嵌套类概要
从类继承的嵌套类/接口 net.neoforged.neoforge.event.entity.living.LivingEntityUseItemEvent
LivingEntityUseItemEvent.Finish, LivingEntityUseItemEvent.Start, LivingEntityUseItemEvent.Stop, LivingEntityUseItemEvent.Tick
从类继承的嵌套类/接口 net.neoforged.neoforge.event.entity.living.LivingEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingVisibilityEvent
从类继承的嵌套类/接口 net.neoforged.neoforge.event.entity.EntityEvent
EntityEvent.EnteringSection, EntityEvent.EntityConstructing, EntityEvent.Size
-
构造器概要
构造器 -
方法概要
从类继承的方法 net.neoforged.neoforge.event.entity.living.LivingEntityUseItemEvent
getDuration, getHand, getItem, setDuration
从类继承的方法 net.neoforged.neoforge.event.entity.living.LivingEvent
getEntity
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
构造器详细资料
-
Stop
-