minny.zephyrus.listeners
Class SpellCastEvent

java.lang.Object
  extended by org.bukkit.event.Event
      extended by minny.zephyrus.listeners.SpellCastEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class SpellCastEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable

Zephyrus

Author:
minnymin3

Nested Class Summary
 
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
 
Constructor Summary
SpellCastEvent(org.bukkit.entity.Player player, Spell spell)
           
 
Method Summary
static org.bukkit.event.HandlerList getHandlerList()
           
 org.bukkit.event.HandlerList getHandlers()
           
 org.bukkit.entity.Player getPlayer()
          Gets the player who cast the spell
 Spell getSpell()
          Gets the spell that was cast
 boolean isCancelled()
          Gets the cancellation state of this event
 void setCancelled(boolean cancel)
          Sets the cancellation state of this event
 
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpellCastEvent

public SpellCastEvent(org.bukkit.entity.Player player,
                      Spell spell)
Method Detail

getHandlers

public org.bukkit.event.HandlerList getHandlers()
Specified by:
getHandlers in class org.bukkit.event.Event

getPlayer

public org.bukkit.entity.Player getPlayer()
Gets the player who cast the spell

Returns:
The player who cast the spell

getSpell

public Spell getSpell()
Gets the spell that was cast

Returns:
The spell that was cast

getHandlerList

public static org.bukkit.event.HandlerList getHandlerList()

isCancelled

public boolean isCancelled()
Gets the cancellation state of this event

Specified by:
isCancelled in interface org.bukkit.event.Cancellable

setCancelled

public void setCancelled(boolean cancel)
Sets the cancellation state of this event

Specified by:
setCancelled in interface org.bukkit.event.Cancellable