public enum Spell extends java.lang.Enum<Spell> implements Validatable
| Enum Constant and Description |
|---|
ARDOUGNE_TELEPORT |
CAMELOT_TELEPORT |
FALADOR_TELEPORT |
LUMBRIDGE_TELEPORT |
VARROCK_TELEPORT |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canUse() |
boolean |
cast() |
Pair<java.lang.Integer,RuneElement>[] |
getRecipe() |
java.lang.String |
getSpellName() |
static Spell |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Spell[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Spell VARROCK_TELEPORT
public static final Spell LUMBRIDGE_TELEPORT
public static final Spell FALADOR_TELEPORT
public static final Spell CAMELOT_TELEPORT
public static final Spell ARDOUGNE_TELEPORT
public static Spell[] values()
for (Spell c : Spell.values()) System.out.println(c);
public static Spell valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic Pair<java.lang.Integer,RuneElement>[] getRecipe()
public java.lang.String getSpellName()
public boolean cast()
public boolean canUse()
canUse in interface Validatable