com.mineblown.challengescript.scripting.event
Class ScriptCancellableEvent

java.lang.Object
  extended by com.mineblown.challengescript.scripting.event.ScriptCancellableEvent
Direct Known Subclasses:
ScriptArrowHitPlayerEvent, ScriptNPCDamageEvent, ScriptNPCHitPlayerEvent, ScriptPlayerChatEvent, ScriptPlayerCommandEvent, ScriptPlayerMoveEvent

public abstract class ScriptCancellableEvent
extends java.lang.Object

Represents a event which can be cancelled.

Author:
Jacek Kuzemczak

Constructor Summary
ScriptCancellableEvent()
           
 
Method Summary
 boolean isCancelled()
          Checks to see if the event has been cancelled.
 void setCancelled(boolean cancelled)
          Sets the cancelled state of the event.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptCancellableEvent

public ScriptCancellableEvent()
Method Detail

isCancelled

public boolean isCancelled()
Checks to see if the event has been cancelled.

Returns:
true if the event has been cancelled, false if not.

setCancelled

public void setCancelled(boolean cancelled)
Sets the cancelled state of the event.

Parameters:
cancelled - true if the event should be cancelled, false if not.