Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
WorldUnloadEvent.java
1 package org.bukkit.event.world;
2 
3 import org.bukkit.World;
6 
7 /**
8  * Called when a World is unloaded
9  */
10 public class WorldUnloadEvent extends WorldEvent implements Cancellable {
11  private static final HandlerList handlers = new HandlerList();
12  private boolean isCancelled;
13 
14  public WorldUnloadEvent(final World world) {
15  super(world);
16  }
17 
18  public boolean isCancelled() {
19  return this.isCancelled;
20  }
21 
22  public void setCancelled(boolean cancel) {
23  this.isCancelled = cancel;
24  }
25 
26  @Override
27  public HandlerList getHandlers() {
28  return handlers;
29  }
30 
31  public static HandlerList getHandlerList() {
32  return handlers;
33  }
34 }