Class TickEvent.ServerTickEvent

java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.TickEvent
net.neoforged.neoforge.event.TickEvent.ServerTickEvent
Enclosing class:
TickEvent

public static class TickEvent.ServerTickEvent extends TickEvent
  • Field Details

  • Constructor Details

  • Method Details

    • haveTime

      public boolean haveTime()
      Returns:
      true whether 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