public enum TeleportMethod extends java.lang.Enum<TeleportMethod> implements Validatable
| Enum Constant and Description |
|---|
ARDOUGNE_TELPORT |
CAMELOT_TELEPORT |
COMBAT_BRACE |
DUELING_RING |
ECTOPHIAL |
FALADOR_TELEPORT |
GAMES_NECKLACE |
GLORY |
LUMBRIDGE_TELEPORT |
RING_OF_WEALTH |
SKILLS_NECKLACE |
VARROCK_TELEPORT |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canUse() |
TeleportLocation[] |
getDestinations() |
boolean |
use(TeleportLocation teleportLocation) |
static TeleportMethod |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TeleportMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TeleportMethod VARROCK_TELEPORT
public static final TeleportMethod LUMBRIDGE_TELEPORT
public static final TeleportMethod FALADOR_TELEPORT
public static final TeleportMethod CAMELOT_TELEPORT
public static final TeleportMethod ARDOUGNE_TELPORT
public static final TeleportMethod GLORY
public static final TeleportMethod COMBAT_BRACE
public static final TeleportMethod GAMES_NECKLACE
public static final TeleportMethod DUELING_RING
public static final TeleportMethod ECTOPHIAL
public static final TeleportMethod SKILLS_NECKLACE
public static final TeleportMethod RING_OF_WEALTH
public static TeleportMethod[] values()
for (TeleportMethod c : TeleportMethod.values()) System.out.println(c);
public static TeleportMethod 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 TeleportLocation[] getDestinations()
public boolean canUse()
canUse in interface Validatablepublic boolean use(TeleportLocation teleportLocation)