Package net.storm.api.items
Enum Class GrandExchangeState
- All Implemented Interfaces:
Serializable,Comparable<GrandExchangeState>,Constable
Represents the various states of the Grand Exchange interface.
This enum defines the possible screens and modes that the Grand Exchange
can be in during player interaction. It is used by IGrandExchange.getState()
to determine the current state of the interface.
- 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 ConstantDescriptionThe Grand Exchange is in the buy offer setup screen.The Grand Exchange interface is closed.The Grand Exchange is showing the offers overview screen.The Grand Exchange is in the sell offer setup screen.The Grand Exchange state could not be determined. -
Method Summary
Modifier and TypeMethodDescriptionstatic GrandExchangeStateReturns the enum constant of this class with the specified name.static GrandExchangeState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLOSED
The Grand Exchange interface is closed.The player is not currently interacting with the Grand Exchange.
-
OFFERS
The Grand Exchange is showing the offers overview screen.This is the main screen that displays all 8 offer slots and their current status (empty, buying, selling, completed, etc.).
-
BUYING
The Grand Exchange is in the buy offer setup screen.The player is configuring a buy offer, including selecting the item, quantity, and price per item.
-
SELLING
The Grand Exchange is in the sell offer setup screen.The player is configuring a sell offer, including selecting the item from inventory, quantity, and price per item.
-
UNKNOWN
The Grand Exchange state could not be determined.This state indicates an unexpected or unrecognized interface configuration.
-
-
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
-