Class LevelTickEvent

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

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

  • Constructor Details

  • Method Details

    • hasTime

      public boolean hasTime()
      On the server, returns true if the server has enough time to perform any additional tasks (usually IO related) during the current tick. On the client, always returns true.
    • getLevel

      public Level getLevel()
      Returns the level being ticked.
      Returns:
      the level being ticked