Package net.storm.api.plugins.config
Enum Class RuneScapeProfileType
- All Implemented Interfaces:
Serializable,Comparable<RuneScapeProfileType>,Constable
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBeta or nosave worlds.Deadman Mode.Deadman Reborn (historical).PvP Arena.Quest speedrunning worlds.Shattered Relics League (historical).Standard game mode (main game).Trailblazer League (historical).Trailblazer Reloaded League and other seasonal content. -
Method Summary
Modifier and TypeMethodDescriptionstatic RuneScapeProfileTypegetCurrent(net.runelite.api.Client client) Determines the current profile type based on the client's world.static RuneScapeProfileTypeReturns the enum constant of this class with the specified name.static RuneScapeProfileType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STANDARD
Standard game mode (main game). -
BETA
Beta or nosave worlds. -
QUEST_SPEEDRUNNING
Quest speedrunning worlds. -
DEADMAN
Deadman Mode. -
PVP_ARENA
PvP Arena. -
TRAILBLAZER_LEAGUE
Trailblazer League (historical). -
DEADMAN_REBORN
Deadman Reborn (historical). -
SHATTERED_RELICS_LEAGUE
Shattered Relics League (historical). -
TRAILBLAZER_RELOADED_LEAGUE
Trailblazer Reloaded League and other seasonal content.
-
-
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
-
getCurrent
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
STANDARDif no specific type matches.- Parameters:
client- the game client to check- Returns:
- the current profile type
-