Package net.storm.api.items
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 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, nevernull
-
isOpen
boolean isOpen()Checks if the Grand Exchange interface is currently open.- Returns:
trueif the Grand Exchange window is open,falseotherwise
-
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:
trueif the item search dialog is open,falseotherwise
-