001 package org.bukkit.event.world; 002 003 import org.bukkit.Chunk; 004 005 /** 006 * Represents a Chunk related event 007 */ 008 public abstract class ChunkEvent extends WorldEvent { 009 protected Chunk chunk; 010 011 protected ChunkEvent(final Chunk chunk) { 012 super(chunk.getWorld()); 013 this.chunk = chunk; 014 } 015 016 /** 017 * Gets the chunk being loaded/unloaded 018 * 019 * @return Chunk that triggered this event 020 */ 021 public Chunk getChunk() { 022 return chunk; 023 } 024 }