类 EntityTickEvent.Pre
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.entity.EntityEvent
net.neoforged.neoforge.event.tick.EntityTickEvent
net.neoforged.neoforge.event.tick.EntityTickEvent.Pre
- 所有已实现的接口:
net.neoforged.bus.api.ICancellableEvent
- 封闭类:
EntityTickEvent
public static class EntityTickEvent.Pre
extends EntityTickEvent
implements net.neoforged.bus.api.ICancellableEvent
EntityTickEvent.Pre
is fired once per game tick, per entity, before the entity performs work for the current tick.
This event fires on both the logical server and logical client.
-
嵌套类概要
从类继承的嵌套类/接口 net.neoforged.neoforge.event.tick.EntityTickEvent
EntityTickEvent.Post, EntityTickEvent.Pre
从类继承的嵌套类/接口 net.neoforged.neoforge.event.entity.EntityEvent
EntityEvent.EnteringSection, EntityEvent.EntityConstructing, EntityEvent.Size
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
setCanceled
(boolean canceled) Cancels this event, preventing the current tick from being executed for the entity.从类继承的方法 net.neoforged.neoforge.event.entity.EntityEvent
getEntity
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.neoforged.bus.api.ICancellableEvent
isCanceled
-
构造器详细资料
-
Pre
-
-
方法详细资料
-
setCanceled
public void setCanceled(boolean canceled) Cancels this event, preventing the current tick from being executed for the entity.Additionally, if this event is canceled, then
EntityTickEvent.Post
will not be fired for the current tick.- 指定者:
setCanceled
在接口中net.neoforged.bus.api.ICancellableEvent
-