Bukkit  1.4.7-R1.0
 All Classes Namespaces Files Functions Variables Enumerator Pages
WorldUnloadEvent.java
Go to the documentation of this file.
1 package org.bukkit.event.world;
2 
3 import org.bukkit.World;
4 import org.bukkit.event.Cancellable;
5 import org.bukkit.event.HandlerList;
6 
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
28  return handlers;
29  }
30 
31  public static HandlerList getHandlerList() {
32  return handlers;
33  }
34 }