Class TickEvent.ServerTickEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.TickEvent
net.minecraftforge.event.TickEvent.ServerTickEvent
Direct Known Subclasses:
TickEvent.ServerTickEvent.Post, TickEvent.ServerTickEvent.Pre
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