Enum Class TeleportSpell
- All Implemented Interfaces:
Serializable,Comparable<TeleportSpell>,Constable
Enumeration of all teleport spells available across different spellbooks.
TeleportSpell defines teleport destinations for magic spells from the Standard, Ancient, Lunar, and Necromancy (Arceuus) spellbooks. Each entry links a spell to its destination coordinates and provides methods to check availability and cast.
Spellbooks Covered
- Standard - Home teleport, Varrock, Lumbridge, Falador, Camelot, etc.
- Ancient - Paddewwa, Senntisten, Kharyrll, Lassar, etc.
- Lunar - Moonclan, Waterbirth, Barbarian, Fishing Guild, etc.
- Necromancy (Arceuus) - Arceuus Library, Draynor Manor, Barrows, etc.
Special Teleports
TELEPORT_TO_HOUSE- Teleports inside player's POHTELEPORT_TO_HOUSE_OUTSIDE- Teleports outside player's POH
Usage Example
TeleportSpell spell = TeleportSpell.VARROCK_TELEPORT;
if (spell.canCast()) {
spell.cast();
WorldPoint destination = spell.getPoint();
}
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionbooleancanCast()Checks if this teleport spell can currently be cast.voidcast()Casts this teleport spell.net.runelite.api.coords.WorldPointgetPoint()Gets the destination world point for this teleport.static TeleportSpellReturns the enum constant of this class with the specified name.static TeleportSpell[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LUMBRIDGE_HOME_TELEPORT
-
TELEPORT_TO_HOUSE
-
TELEPORT_TO_HOUSE_OUTSIDE
-
VARROCK_TELEPORT
-
LUMBRIDGE_TELEPORT
-
FALADOR_TELEPORT
-
CAMELOT_TELEPORT
-
ARDOUGNE_TELEPORT
-
CIVITAS_TELEPORT
-
WATCHTOWER_TELEPORT
-
TROLLHEIM_TELEPORT
-
TELEPORT_TO_KOUREND
-
TELEPORT_TO_APE_ATOLL
-
EDGEVILLE_HOME_TELEPORT
-
PADDEWWA_TELEPORT
-
SENNTISTEN_TELEPORT
-
KHARYRLL_TELEPORT
-
LASSAR_TELEPORT
-
DAREEYAK_TELEPORT
-
CARRALLANGER_TELEPORT
-
ANNAKARL_TELEPORT
-
GHORROCK_TELEPORT
-
LUNAR_HOME_TELEPORT
-
MOONCLAN_TELEPORT
-
OURANIA_TELEPORT
-
WATERBIRTH_TELEPORT
-
BARBARIAN_TELEPORT
-
KHAZARD_TELEPORT
-
FISHING_GUILD_TELEPORT
-
CATHERBY_TELEPORT
-
ICE_PLATEAU_TELEPORT
-
ARCEUUS_HOME_TELEPORT
-
ARCEUUS_LIBRARY_TELEPORT
-
DRAYNOR_MANOR_TELEPORT
-
BATTLEFRONT_TELEPORT
-
MIND_ALTAR_TELEPORT
-
RESPAWN_TELEPORT
-
SALVE_GRAVEYARD_TELEPORT
-
FENKENSTRAINS_CASTLE_TELEPORT
-
WEST_ARDOUGNE_TELEPORT
-
HARMONY_ISLAND_TELEPORT
-
CEMETERY_TELEPORT
-
BARROWS_TELEPORT
-
APE_ATOLL_TELEPORT
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
canCast
public boolean canCast()Checks if this teleport spell can currently be cast.Verifies that the player has the required magic level, runes, and any special conditions are met (e.g., house location for outside teleport).
- Returns:
- true if the spell can be cast, false otherwise
-
getPoint
public net.runelite.api.coords.WorldPoint getPoint()Gets the destination world point for this teleport.For house outside teleport, dynamically calculates the nearest walkable tile to the house location.
- Returns:
- the destination world point
-
cast
public void cast()Casts this teleport spell.Uses the custom action if specified, otherwise casts with default action.
-