Class LevelEvent

java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.level.LevelEvent
Direct Known Subclasses:
BlockGrowFeatureEvent, ChunkEvent, LevelEvent.CreateSpawnPosition, LevelEvent.Load, LevelEvent.PotentialSpawns, LevelEvent.Save, LevelEvent.Unload, SleepFinishedTimeEvent

public abstract class LevelEvent extends net.neoforged.bus.api.Event
This event is fired whenever an event involving a LevelAccessor occurs.

All children of this event are fired on the main Forge event bus.

  • Field Details

  • Constructor Details

  • Method Details

    • getLevel

      public LevelAccessor getLevel()
      Returns the level this event is affecting.
      Returns:
      the level this event is affecting