Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
at develop 25 lines 614 B view raw
1package org.bukkit.event.world; 2 3import org.bukkit.Chunk; 4 5/** 6 * Called when a chunk is loaded 7 */ 8public class ChunkLoadEvent extends ChunkEvent { 9 private final boolean newChunk; 10 11 public ChunkLoadEvent(final Chunk chunk, final boolean newChunk) { 12 super(Type.CHUNK_LOAD, chunk); 13 this.newChunk = newChunk; 14 } 15 16 /** 17 * Gets if this chunk was newly created or not. 18 * Note that if this chunk is new, it will not be populated at this time. 19 * 20 * @return true if the chunk is new, otherwise false 21 */ 22 public boolean isNewChunk() { 23 return newChunk; 24 } 25}