001 package org.bukkit.event;
002
003 public interface Cancellable {
004
005 /**
006 * Gets the cancellation state of this event. A cancelled event will not
007 * be executed in the server, but will still pass to other plugins
008 *
009 * @return true if this event is cancelled
010 */
011 public boolean isCancelled();
012
013 /**
014 * Sets the cancellation state of this event. A cancelled event will not
015 * be executed in the server, but will still pass to other plugins.
016 *
017 * @param cancel true if you wish to cancel this event
018 */
019 public void setCancelled(boolean cancel);
020 }