Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
at develop 24 lines 475 B view raw
1package org.bukkit.event.world; 2 3import org.bukkit.Chunk; 4 5/** 6 * Represents a Chunk related event 7 */ 8public class ChunkEvent extends WorldEvent { 9 protected Chunk chunk; 10 11 protected ChunkEvent(Type type, Chunk chunk) { 12 super(type, chunk.getWorld()); 13 this.chunk = chunk; 14 } 15 16 /** 17 * Gets the chunk being loaded/unloaded 18 * 19 * @return Chunk that triggered this event 20 */ 21 public Chunk getChunk() { 22 return chunk; 23 } 24}