Class ServerTickEvent

java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.tick.ServerTickEvent
Direct Known Subclasses:
ServerTickEvent.Post, ServerTickEvent.Pre

public abstract class ServerTickEvent extends net.neoforged.bus.api.Event
Base class of the two server tick events.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • hasTime

      public boolean hasTime()
      Returns true if the server has enough time to perform any additional tasks (usually IO related) during the current tick, otherwise false.
      Returns:
      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()
      Returns the server instance.
      Returns:
      the server instance