Enum Class RuneScapeProfileType

java.lang.Object
java.lang.Enum<RuneScapeProfileType>
net.storm.api.plugins.config.RuneScapeProfileType
All Implemented Interfaces:
Serializable, Comparable<RuneScapeProfileType>, Constable

public enum RuneScapeProfileType extends Enum<RuneScapeProfileType>
Enumeration of RuneScape game modes that support separate configuration profiles.

Each profile type corresponds to a different game mode in Old School RuneScape. Players can have different configuration settings for each profile type, allowing per-mode customization.

Important: This enum must remain ordinal-stable for serialization compatibility. New entries should only be added to the end, and existing entries should never be removed or reordered.

See Also:
  • Enum Constant Details

    • STANDARD

      public static final RuneScapeProfileType STANDARD
      Standard game mode (main game).
    • BETA

      public static final RuneScapeProfileType BETA
      Beta or nosave worlds.
    • QUEST_SPEEDRUNNING

      public static final RuneScapeProfileType QUEST_SPEEDRUNNING
      Quest speedrunning worlds.
    • DEADMAN

      public static final RuneScapeProfileType DEADMAN
      Deadman Mode.
    • PVP_ARENA

      public static final RuneScapeProfileType PVP_ARENA
      PvP Arena.
    • TRAILBLAZER_LEAGUE

      public static final RuneScapeProfileType TRAILBLAZER_LEAGUE
      Trailblazer League (historical).
    • DEADMAN_REBORN

      public static final RuneScapeProfileType DEADMAN_REBORN
      Deadman Reborn (historical).
    • SHATTERED_RELICS_LEAGUE

      public static final RuneScapeProfileType SHATTERED_RELICS_LEAGUE
      Shattered Relics League (historical).
    • TRAILBLAZER_RELOADED_LEAGUE

      public static final RuneScapeProfileType TRAILBLAZER_RELOADED_LEAGUE
      Trailblazer Reloaded League and other seasonal content.
  • Method Details

    • values

      public static RuneScapeProfileType[] 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 RuneScapeProfileType 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
    • getCurrent

      public static RuneScapeProfileType getCurrent(net.runelite.api.Client client)
      Determines the current profile type based on the client's world.

      Tests profile types in reverse order (newest first) and returns the first matching type. Falls back to STANDARD if no specific type matches.

      Parameters:
      client - the game client to check
      Returns:
      the current profile type