package org.bukkit.event.world; import org.bukkit.Chunk; /** * Called when a chunk is loaded */ public class ChunkLoadEvent extends ChunkEvent { private final boolean newChunk; public ChunkLoadEvent(final Chunk chunk, final boolean newChunk) { super(Type.CHUNK_LOAD, chunk); this.newChunk = newChunk; } /** * Gets if this chunk was newly created or not. * Note that if this chunk is new, it will not be populated at this time. * * @return true if the chunk is new, otherwise false */ public boolean isNewChunk() { return newChunk; } }