Enum Class SpiritTree

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

public enum SpiritTree extends Enum<SpiritTree>
Enumeration of all Spirit Tree destinations in the transportation network.

SpiritTree represents the spirit tree network accessible after completing The Grand Tree quest. Spirit trees provide instant teleportation between fixed locations and player-grown trees.

Default Trees

  • Tree Gnome Village - Always accessible after quest
  • Gnome Stronghold - Requires The Grand Tree completion
  • Battlefield of Khazard - Always accessible
  • Grand Exchange - Always accessible
  • Feldip Hills - Always accessible
  • Prifddinas - Requires Song of the Elves
  • Poison Waste - Requires The Path of Glouphrie

Planted Trees

Players can plant spirit trees at farming patches:

  • Port Sarim
  • Etceteria
  • Brimhaven
  • Hosidius
  • Farming Guild

Usage Example


 // Get all spirit trees as transports
 List<Transport> transports = SpiritTree.getTransports();

 // Travel to Grand Exchange
 SpiritTree.GRAND_EXCHANGE.getPosition();
 
See Also:
  • Enum Constant Details

    • TREE_GNOME_VILLAGE

      public static final SpiritTree TREE_GNOME_VILLAGE
    • GNOME_STRONGHOLD

      public static final SpiritTree GNOME_STRONGHOLD
    • BATTLEFIELD_OF_KHAZARD

      public static final SpiritTree BATTLEFIELD_OF_KHAZARD
    • GRAND_EXCHANGE

      public static final SpiritTree GRAND_EXCHANGE
    • FELDIP_HILLS

      public static final SpiritTree FELDIP_HILLS
    • PRIFDDINAS

      public static final SpiritTree PRIFDDINAS
    • POISON_WASTE

      public static final SpiritTree POISON_WASTE
    • PORT_SARIM

      public static final SpiritTree PORT_SARIM
    • ETCETERIA

      public static final SpiritTree ETCETERIA
    • BRIMHAVEN

      public static final SpiritTree BRIMHAVEN
    • HOSIDIUS

      public static final SpiritTree HOSIDIUS
    • FARMING_GUILD

      public static final SpiritTree FARMING_GUILD
  • Method Details

    • values

      public static SpiritTree[] 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 SpiritTree 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
    • getAll

      public static SpiritTree[] getAll()
      Gets all spirit tree destinations.
      Returns:
      array of all spirit trees
    • getAllWithNoRequirements

      public static Set<SpiritTree> getAllWithNoRequirements()
      Gets all spirit trees that have no special quest requirements.

      These trees are accessible immediately after starting The Grand Tree quest.

      Returns:
      set of spirit trees with no additional requirements
    • canUse

      public boolean canUse()
      Checks if the spirit tree can be used based on requirements.
      Returns:
      true if all requirements are fulfilled, false otherwise
    • getTransports

      public static List<Transport> getTransports()
      Generates Transport objects for all valid spirit tree connections.

      Creates transports between all configured spirit trees, filtering out those requiring quest completion if not met.

      Returns:
      list of spirit tree transport connections