Class LevelEvent.Unload

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.level.LevelEvent
net.minecraftforge.event.level.LevelEvent.Unload
Enclosing class:
LevelEvent

public static class LevelEvent.Unload extends LevelEvent
This event is fired whenever a level unloads. This event is fired whenever a level unloads in
invalid reference
Minecraft#setLevel(ClientLevel)
, MinecraftServer.stopServer(),
invalid reference
Minecraft#clearLevel(Screen)
, and
invalid reference
ForgeInternalHandler#onDimensionUnload(Unload)
.

This event is not cancellable and does not have a result.

This event is fired on the main Forge event bus on both logical sides.

  • Constructor Details