Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
ChunkEvent.java
1 package org.bukkit.event.world;
2 
3 import org.bukkit.Chunk;
4 
5 /**
6  * Represents a Chunk related event
7  */
8 public abstract class ChunkEvent extends WorldEvent {
9  protected Chunk chunk;
10 
11  protected ChunkEvent(final Chunk chunk) {
12  super(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 }