Enum Class TeleportSpell

java.lang.Object
java.lang.Enum<TeleportSpell>
net.storm.api.movement.pathfinder.model.TeleportSpell
All Implemented Interfaces:
Serializable, Comparable<TeleportSpell>, Constable

public enum TeleportSpell extends Enum<TeleportSpell>
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

Usage Example


 TeleportSpell spell = TeleportSpell.VARROCK_TELEPORT;

 if (spell.canCast()) {
     spell.cast();
     WorldPoint destination = spell.getPoint();
 }
 
See Also:
  • Enum Constant Details

    • LUMBRIDGE_HOME_TELEPORT

      public static final TeleportSpell LUMBRIDGE_HOME_TELEPORT
    • TELEPORT_TO_HOUSE

      public static final TeleportSpell TELEPORT_TO_HOUSE
    • TELEPORT_TO_HOUSE_OUTSIDE

      public static final TeleportSpell TELEPORT_TO_HOUSE_OUTSIDE
    • VARROCK_TELEPORT

      public static final TeleportSpell VARROCK_TELEPORT
    • LUMBRIDGE_TELEPORT

      public static final TeleportSpell LUMBRIDGE_TELEPORT
    • FALADOR_TELEPORT

      public static final TeleportSpell FALADOR_TELEPORT
    • CAMELOT_TELEPORT

      public static final TeleportSpell CAMELOT_TELEPORT
    • ARDOUGNE_TELEPORT

      public static final TeleportSpell ARDOUGNE_TELEPORT
    • CIVITAS_TELEPORT

      public static final TeleportSpell CIVITAS_TELEPORT
    • WATCHTOWER_TELEPORT

      public static final TeleportSpell WATCHTOWER_TELEPORT
    • TROLLHEIM_TELEPORT

      public static final TeleportSpell TROLLHEIM_TELEPORT
    • TELEPORT_TO_KOUREND

      public static final TeleportSpell TELEPORT_TO_KOUREND
    • TELEPORT_TO_APE_ATOLL

      public static final TeleportSpell TELEPORT_TO_APE_ATOLL
    • EDGEVILLE_HOME_TELEPORT

      public static final TeleportSpell EDGEVILLE_HOME_TELEPORT
    • PADDEWWA_TELEPORT

      public static final TeleportSpell PADDEWWA_TELEPORT
    • SENNTISTEN_TELEPORT

      public static final TeleportSpell SENNTISTEN_TELEPORT
    • KHARYRLL_TELEPORT

      public static final TeleportSpell KHARYRLL_TELEPORT
    • LASSAR_TELEPORT

      public static final TeleportSpell LASSAR_TELEPORT
    • DAREEYAK_TELEPORT

      public static final TeleportSpell DAREEYAK_TELEPORT
    • CARRALLANGER_TELEPORT

      public static final TeleportSpell CARRALLANGER_TELEPORT
    • ANNAKARL_TELEPORT

      public static final TeleportSpell ANNAKARL_TELEPORT
    • GHORROCK_TELEPORT

      public static final TeleportSpell GHORROCK_TELEPORT
    • LUNAR_HOME_TELEPORT

      public static final TeleportSpell LUNAR_HOME_TELEPORT
    • MOONCLAN_TELEPORT

      public static final TeleportSpell MOONCLAN_TELEPORT
    • OURANIA_TELEPORT

      public static final TeleportSpell OURANIA_TELEPORT
    • WATERBIRTH_TELEPORT

      public static final TeleportSpell WATERBIRTH_TELEPORT
    • BARBARIAN_TELEPORT

      public static final TeleportSpell BARBARIAN_TELEPORT
    • KHAZARD_TELEPORT

      public static final TeleportSpell KHAZARD_TELEPORT
    • FISHING_GUILD_TELEPORT

      public static final TeleportSpell FISHING_GUILD_TELEPORT
    • CATHERBY_TELEPORT

      public static final TeleportSpell CATHERBY_TELEPORT
    • ICE_PLATEAU_TELEPORT

      public static final TeleportSpell ICE_PLATEAU_TELEPORT
    • ARCEUUS_HOME_TELEPORT

      public static final TeleportSpell ARCEUUS_HOME_TELEPORT
    • ARCEUUS_LIBRARY_TELEPORT

      public static final TeleportSpell ARCEUUS_LIBRARY_TELEPORT
    • DRAYNOR_MANOR_TELEPORT

      public static final TeleportSpell DRAYNOR_MANOR_TELEPORT
    • BATTLEFRONT_TELEPORT

      public static final TeleportSpell BATTLEFRONT_TELEPORT
    • MIND_ALTAR_TELEPORT

      public static final TeleportSpell MIND_ALTAR_TELEPORT
    • RESPAWN_TELEPORT

      public static final TeleportSpell RESPAWN_TELEPORT
    • SALVE_GRAVEYARD_TELEPORT

      public static final TeleportSpell SALVE_GRAVEYARD_TELEPORT
    • FENKENSTRAINS_CASTLE_TELEPORT

      public static final TeleportSpell FENKENSTRAINS_CASTLE_TELEPORT
    • WEST_ARDOUGNE_TELEPORT

      public static final TeleportSpell WEST_ARDOUGNE_TELEPORT
    • HARMONY_ISLAND_TELEPORT

      public static final TeleportSpell HARMONY_ISLAND_TELEPORT
    • CEMETERY_TELEPORT

      public static final TeleportSpell CEMETERY_TELEPORT
    • BARROWS_TELEPORT

      public static final TeleportSpell BARROWS_TELEPORT
    • APE_ATOLL_TELEPORT

      public static final TeleportSpell APE_ATOLL_TELEPORT
  • Method Details

    • values

      public static TeleportSpell[] 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

      public static TeleportSpell valueOf(String name)
      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 name
      NullPointerException - 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.