类 ServerTickEvent

java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.tick.ServerTickEvent
直接已知子类:
ServerTickEvent.Post, ServerTickEvent.Pre

public abstract class ServerTickEvent extends net.neoforged.bus.api.Event
Base class of the two server tick events.
另请参阅:
  • 字段详细资料

  • 构造器详细资料

  • 方法详细资料

    • hasTime

      public boolean hasTime()
      返回 true if the server has enough time to perform any additional tasks (usually IO related) during the current tick, otherwise false。
      返回:
      true if the server has enough time to perform any additional tasks (usually IO related) during the current tick, otherwise false
    • getServer

      public MinecraftServer getServer()
      返回 the server instance。
      返回:
      the server instance