Interface IGrandExchange


public interface IGrandExchange
Provides an interface for interacting with the Grand Exchange.

The Grand Exchange is the primary trading hub in the game where players can buy and sell items to other players through automated offers. This interface provides methods to check the current state of the Grand Exchange interface.

Common usage scenarios:

  • Checking if the Grand Exchange window is open before placing offers
  • Determining the current screen state (buying, selling, or viewing offers)
  • Detecting when the item search dialog is active

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the current state of the Grand Exchange interface.
    boolean
    Checks if the Grand Exchange interface is currently open.
    boolean
    Checks if the item search dialog is currently active.
  • Method Details

    • getState

      GrandExchangeState getState()
      Gets the current state of the Grand Exchange interface.

      The state indicates what screen or mode the Grand Exchange is currently in, such as viewing offers, setting up a buy order, or setting up a sell order.

      Returns:
      the current GrandExchangeState, never null
    • isOpen

      boolean isOpen()
      Checks if the Grand Exchange interface is currently open.
      Returns:
      true if the Grand Exchange window is open, false otherwise
    • isSearchingItem

      boolean isSearchingItem()
      Checks if the item search dialog is currently active.

      The search dialog appears when the player is searching for an item to buy or sell in the Grand Exchange.

      Returns:
      true if the item search dialog is open, false otherwise