Enum Class SpiritTree
- All Implemented Interfaces:
Serializable,Comparable<SpiritTree>,Constable
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleancanUse()Checks if the spirit tree can be used based on requirements.static SpiritTree[]getAll()Gets all spirit tree destinations.static Set<SpiritTree> Gets all spirit trees that have no special quest requirements.Generates Transport objects for all valid spirit tree connections.static SpiritTreeReturns the enum constant of this class with the specified name.static SpiritTree[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TREE_GNOME_VILLAGE
-
GNOME_STRONGHOLD
-
BATTLEFIELD_OF_KHAZARD
-
GRAND_EXCHANGE
-
FELDIP_HILLS
-
PRIFDDINAS
-
POISON_WASTE
-
PORT_SARIM
-
ETCETERIA
-
BRIMHAVEN
-
HOSIDIUS
-
FARMING_GUILD
-
-
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
-
getAll
Gets all spirit tree destinations.- Returns:
- array of all spirit trees
-
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
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
-