Enum Class MagicCarpet

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

public enum MagicCarpet extends Enum<MagicCarpet>
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:
  • Enum Constant Details

    • SHANTAY_PASS_TO_UZER

      public static final MagicCarpet SHANTAY_PASS_TO_UZER
    • SHANTAY_PASS_TO_BEDABIN_CAMP

      public static final MagicCarpet SHANTAY_PASS_TO_BEDABIN_CAMP
    • SHANTAY_PASS_TO_POLLNIVNEACH

      public static final MagicCarpet SHANTAY_PASS_TO_POLLNIVNEACH
    • UZER_TO_SHANTAY_PASS

      public static final MagicCarpet UZER_TO_SHANTAY_PASS
    • BEDABIN_CAMP_TO_SHANTAY_PASS

      public static final MagicCarpet BEDABIN_CAMP_TO_SHANTAY_PASS
    • NORTH_POLLNIVNEACH_TO_SHANTAY_PASS

      public static final MagicCarpet NORTH_POLLNIVNEACH_TO_SHANTAY_PASS
    • SOUTH_POLLNIVNEACH_TO_SOPHANEM

      public static final MagicCarpet SOUTH_POLLNIVNEACH_TO_SOPHANEM
    • SOUTH_POLLNIVNEACH_TO_MENAPHOS

      public static final MagicCarpet SOUTH_POLLNIVNEACH_TO_MENAPHOS
    • SOUTH_POLLNIVNEACH_TO_NARDAH

      public static final MagicCarpet SOUTH_POLLNIVNEACH_TO_NARDAH
    • SOPHANEM_TO_SOUTH_POLLNIVNEACH

      public static final MagicCarpet SOPHANEM_TO_SOUTH_POLLNIVNEACH
    • MENAPHOS_TO_SOUTH_POLLNIVNEACH

      public static final MagicCarpet MENAPHOS_TO_SOUTH_POLLNIVNEACH
    • NARDAH_TO_SOUTH_POLLNIVNEACH

      public static final MagicCarpet NARDAH_TO_SOUTH_POLLNIVNEACH
  • Method Details

    • values

      public static MagicCarpet[] 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 MagicCarpet 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
    • 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 point
      destination - the destination world point
      Returns:
      the calculated cost in gold, or 0 if no route found
    • getCarpetTransports

      public static List<Transport> 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

      public MagicCarpet getNearest()
      Finds the nearest magic carpet rug origin to the player.
      Returns:
      the MagicCarpet enum with the closest origin rug
    • getRequirements

      public Requirements 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