Class GrandExchange


  • public final class GrandExchange
    extends java.lang.Object
    The newer grand exchange class which queries the correct GrandExchange based on the current game type.
    • Method Detail

      • isOpen

        public static boolean isOpen()
      • close

        public static boolean close()
      • lookup

        @Nullable
        public static @Nullable GrandExchange.Item lookup​(int id)
        Looks up the information of this item from the internet.
      • placeBuyOffer

        public static boolean placeBuyOffer​(java.lang.String itemName,
                                            int quantity,
                                            int price)
        Places a new buy offer within the GrandExchange.
        Parameters:
        itemName - The exact item name of what you want to purchase.
        quantity - The quantity you want to buy.
        price - The price you want to buy at.
        Returns:
        If the offer was successfully placed.
      • placeSellOffer

        public static boolean placeSellOffer​(java.lang.String itemName,
                                             int quantity,
                                             int price)
        Places a new sell offer within the GrandExchange.
        Parameters:
        itemName - The exact item name of what you want to sell.
        quantity - The quantity you want to sell.
        price - The price you want to sell at.
        Returns:
        If the offer was successfully placed.
      • getOfferedPrice

        public static int getOfferedPrice()
        Returns:
        the price of each item being purchased in the currently open offer
      • getOfferedQuantity

        public static int getOfferedQuantity()
        Returns:
        the quantity of each the item being purchased in the currently open offer
      • collectToInventory

        public static boolean collectToInventory()
        Collects any unclaimed items from the Grand Exchange to the player's inventory
        Returns:
        if the collection was successful, false otherwise
      • collectToBank

        public static boolean collectToBank()
        Collects any unclaimed items from the Grand Exchange to the player's bank
        Returns:
        if the collection was successful, false otherwise
      • lookup

        public static java.util.List<GrandExchange.Item> lookup​(int... ids)
        Looks up the information of these items from the internet. This can take a few seconds so please use a separate thread
      • open

        public static boolean open()
      • open

        public static boolean open​(java.lang.String action)
      • open

        public static boolean open​(Npc clerk,
                                   java.lang.String action)