Enum Class PortalNexus
- All Implemented Interfaces:
Serializable,Comparable<PortalNexus>,Constable
Enumeration of Portal Nexus destinations and their configuration values.
PortalNexus represents the centralized portal system in a POH that can store multiple teleport destinations in a single object. Each destination is tracked via varbits indicating whether it has been added to the nexus.
Nexus Features
- Stores up to 30 portal destinations
- Destinations tracked via individual varbits
- Supports all standard house portal destinations
- Handles redirect destinations (Varrock/GE, Camelot/Seers, Watchtower/Yanille)
Redirect Handling
The nexus automatically includes alternate destinations when:
- Varrock Medium Diary complete - Varrock and Grand Exchange paired
- Kandarin Hard Diary complete - Camelot and Seers' Village paired
- Ardougne Hard Diary complete - Watchtower and Yanille paired
Usage Example
// Get all configured nexus destinations
Set<PortalNexus> available = PortalNexus.getAvailable();
// Check if specific destination is available
if (available.contains(PortalNexus.VARROCK)) {
HousePortal portal = PortalNexus.VARROCK.getPortal();
WorldPoint dest = portal.getDestination();
}
- 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 TypeMethodDescriptionstatic Set<PortalNexus> Gets all portal nexus destinations currently configured in the player's POH.static PortalNexusReturns the enum constant of this class with the specified name.static PortalNexus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ARCEUUS_LIBRARY
-
DRAYNOR_MANOR
-
BATTLEFRONT
-
VARROCK
-
GRAND_EXCHANGE
-
MIND_ALTAR
-
LUMBRIDGE
-
FALADOR
-
SALVE_GRAVEYARD
-
CAMELOT
-
SEERS_VILLAGE
-
FENKENSTRAINS_CASTLE
-
EAST_ARDOUGNE
-
WATCHTOWER
-
YANILLE
-
SENNTISTEN
-
WEST_ARDOUGNE
-
MARIM
-
HARMONY_ISLAND
-
KHARYRLL
-
LUNAR_ISLE
-
KOUREND
-
CEMETERY
-
WATERBIRTH_ISLAND
-
BARROWS
-
CARRALLANGAR
-
FISHING_GUILD
-
CATHERBY
-
ANNAKARL
-
APE_ATOLL_DUNGEON
-
GHORROCK
-
TROLL_STRONGHOLD
-
WEISS
-
CIVITAS_ILLA_FORTIS
-
-
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
-
getAvailable
Gets all portal nexus destinations currently configured in the player's POH.Reads the portal slot varbits (6554-6668, 10080-10091) to determine which destinations have been added. Also handles diary-based redirect pairing.
- Returns:
- set of available portal nexus destinations
-