com.nisovin.MagicSpells
Enum Spell.PostCastAction

java.lang.Object
  extended by java.lang.Enum<Spell.PostCastAction>
      extended by com.nisovin.MagicSpells.Spell.PostCastAction
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Spell.PostCastAction>
Enclosing class:
Spell

protected static enum Spell.PostCastAction
extends java.lang.Enum<Spell.PostCastAction>


Enum Constant Summary
ALREADY_HANDLED
           
COOLDOWN_ONLY
           
HANDLE_NORMALLY
           
MESSAGES_ONLY
           
NO_COOLDOWN
           
NO_MESSAGES
           
NO_REAGENTS
           
REAGENTS_ONLY
           
 
Method Summary
static Spell.PostCastAction valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Spell.PostCastAction[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

HANDLE_NORMALLY

public static final Spell.PostCastAction HANDLE_NORMALLY

ALREADY_HANDLED

public static final Spell.PostCastAction ALREADY_HANDLED

NO_MESSAGES

public static final Spell.PostCastAction NO_MESSAGES

NO_REAGENTS

public static final Spell.PostCastAction NO_REAGENTS

NO_COOLDOWN

public static final Spell.PostCastAction NO_COOLDOWN

MESSAGES_ONLY

public static final Spell.PostCastAction MESSAGES_ONLY

REAGENTS_ONLY

public static final Spell.PostCastAction REAGENTS_ONLY

COOLDOWN_ONLY

public static final Spell.PostCastAction COOLDOWN_ONLY
Method Detail

values

public static Spell.PostCastAction[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Spell.PostCastAction c : Spell.PostCastAction.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Spell.PostCastAction valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null