Enum Class GrandExchangeState

java.lang.Object
java.lang.Enum<GrandExchangeState>
net.storm.api.items.GrandExchangeState
All Implemented Interfaces:
Serializable, Comparable<GrandExchangeState>, Constable

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

    • CLOSED

      public static final GrandExchangeState CLOSED
      The Grand Exchange interface is closed.

      The player is not currently interacting with the Grand Exchange.

    • OFFERS

      public static final GrandExchangeState 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

      public static final GrandExchangeState 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

      public static final GrandExchangeState 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

      public static final GrandExchangeState UNKNOWN
      The Grand Exchange state could not be determined.

      This state indicates an unexpected or unrecognized interface configuration.

  • Method Details

    • values

      public static GrandExchangeState[] 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 GrandExchangeState 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