001 package org.bukkit.event.world; 002 003 import org.bukkit.World; 004 import org.bukkit.event.Cancellable; 005 import org.bukkit.event.HandlerList; 006 007 /** 008 * Called when a World is unloaded 009 */ 010 public class WorldUnloadEvent extends WorldEvent implements Cancellable { 011 private static final HandlerList handlers = new HandlerList(); 012 private boolean isCancelled; 013 014 public WorldUnloadEvent(final World world) { 015 super(world); 016 } 017 018 public boolean isCancelled() { 019 return this.isCancelled; 020 } 021 022 public void setCancelled(boolean cancel) { 023 this.isCancelled = cancel; 024 } 025 026 @Override 027 public HandlerList getHandlers() { 028 return handlers; 029 } 030 031 public static HandlerList getHandlerList() { 032 return handlers; 033 } 034 }