Enum Class MagicCarpet
- All Implemented Interfaces:
Serializable,Comparable<MagicCarpet>,Constable
Enumeration of all Magic Carpet routes in the Kharidian Desert.
MagicCarpet represents the desert transportation network accessible via magic carpet rugs. These provide fast travel between desert locations for a gold fee.
Carpet Locations
- Shantay Pass - Main hub with connections to Bedabin, Pollnivneach, Uzer
- North Pollnivneach - Connects to Shantay Pass
- South Pollnivneach - Connects to Sophanem, Menaphos, Nardah
- Bedabin Camp - Connects to Shantay Pass
- Uzer - Requires The Golem quest
- Sophanem/Menaphos - Requires Icthlarin's Little Helper
- Nardah - Connects to South Pollnivneach
Cost Modifiers
- Standard Cost - 200gp per trip
- Desert Diary Hard - Free travel
- Ring of Charos (a) - 100gp per trip
Usage Example
MagicCarpet carpet = MagicCarpet.SHANTAY_PASS_TO_POLLNIVNEACH;
int cost = carpet.getCost();
if (carpet.getRequirements().fulfilled()) {
// Travel via magic carpet
}
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnumeration of magic carpet rug locations in the Kharidian Desert.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 intgetCarpetCost(net.runelite.api.coords.WorldPoint source, net.runelite.api.coords.WorldPoint destination) Gets the magic carpet cost for a specific route by coordinates.Gets all available magic carpet routes as Transport objects.intgetCost()Gets the calculated cost for this carpet trip with discounts applied.Finds the nearest magic carpet rug origin to the player.Gets the requirements container for this magic carpet route.static MagicCarpetReturns the enum constant of this class with the specified name.static MagicCarpet[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SHANTAY_PASS_TO_UZER
-
SHANTAY_PASS_TO_BEDABIN_CAMP
-
SHANTAY_PASS_TO_POLLNIVNEACH
-
UZER_TO_SHANTAY_PASS
-
BEDABIN_CAMP_TO_SHANTAY_PASS
-
NORTH_POLLNIVNEACH_TO_SHANTAY_PASS
-
SOUTH_POLLNIVNEACH_TO_SOPHANEM
-
SOUTH_POLLNIVNEACH_TO_MENAPHOS
-
SOUTH_POLLNIVNEACH_TO_NARDAH
-
SOPHANEM_TO_SOUTH_POLLNIVNEACH
-
MENAPHOS_TO_SOUTH_POLLNIVNEACH
-
NARDAH_TO_SOUTH_POLLNIVNEACH
-
-
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
-
getCarpetCost
public static int getCarpetCost(net.runelite.api.coords.WorldPoint source, net.runelite.api.coords.WorldPoint destination) Gets the magic carpet cost for a specific route by coordinates.- Parameters:
source- the origin world pointdestination- the destination world point- Returns:
- the calculated cost in gold, or 0 if no route found
-
getCarpetTransports
Gets all available magic carpet routes as Transport objects.Filters routes to only those whose requirements are fulfilled, then converts them to Transport instances.
- Returns:
- list of Transport objects for usable carpet routes
-
getCost
public int getCost()Gets the calculated cost for this carpet trip with discounts applied.Costs:
- Standard: 200gp
- With Ring of Charos (a): 100gp
- With Desert Diary Hard complete: Free (0gp)
- Returns:
- the final cost in gold coins
-
getNearest
Finds the nearest magic carpet rug origin to the player.- Returns:
- the MagicCarpet enum with the closest origin rug
-
getRequirements
Gets the requirements container for this magic carpet route.Includes quest requirements and automatically adds a gold requirement based on the calculated cost.
- Returns:
- Requirements object containing all route requirements
-