Class ChunkEvent.Load

java.lang.Object
net.neoforged.bus.api.Event
Enclosing class:
ChunkEvent

public static class ChunkEvent.Load extends ChunkEvent
ChunkEvent.Load is fired when vanilla Minecraft attempts to load a Chunk into the level.
This event is fired during chunk loading in
Chunk.onChunkLoad().
Note: This event may be called before the underlying LevelChunk is promoted to ChunkStatus.FULL. You will cause chunk loading deadlocks if you don't delay your level interactions.

This event is not
invalid reference
ICancellableEvent
.

This event does not have a result.
invalid reference
HasResult


This event is fired on the NeoForge.EVENT_BUS.
  • Field Details

    • newChunk

      private final boolean newChunk
  • Constructor Details

    • Load

      @Internal public Load(ChunkAccess chunk, boolean newChunk)
  • Method Details

    • isNewChunk

      public boolean isNewChunk()
      Check whether the Chunk is newly generated, and being loaded for the first time.

      Will only ever return true on the logical server.

      Returns:
      whether the Chunk is newly generated