Class ChunkLoadEvent


public class ChunkLoadEvent extends ChunkEvent
Called when a chunk is loaded
  • Constructor Details

    • ChunkLoadEvent

      public ChunkLoadEvent(@NotNull Chunk chunk, boolean newChunk)
  • Method Details

    • isNewChunk

      public boolean isNewChunk()
      Gets if this chunk was newly created or not.

      Note: Do not use this to generated blocks in a newly generated chunk. Use a BlockPopulator instead.

      Returns:
      true if the chunk is new, otherwise false
    • getHandlers

      @NotNull public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      @NotNull public static HandlerList getHandlerList()