类 ChunkEvent.Load

java.lang.Object
net.minecraftforge.eventbus.api.Event
封闭类:
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 Cancelable.

This event does not have a result. Event.HasResult

This event is fired on the MinecraftForge.EVENT_BUS.
  • 字段详细资料

    • newChunk

      private final boolean newChunk
  • 构造器详细资料

    • Load

      @Internal public Load(ChunkAccess chunk, boolean newChunk)
  • 方法详细资料

    • 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.

      返回:
      whether the Chunk is newly generated