类 EntityTickEvent.Pre

java.lang.Object
net.neoforged.bus.api.Event
所有已实现的接口:
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.

  • 构造器详细资料

    • Pre

      public Pre(Entity entity)
  • 方法详细资料

    • 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