Class GrandExchange.Offer

  • Enclosing class:
    GrandExchange

    public static class GrandExchange.Offer
    extends java.lang.Object
    • Method Detail

      • getItemQuantity

        public int getItemQuantity()
        Returns:
        The total quantity of the item being bought or sold in the offer.
      • getItemPrice

        public int getItemPrice()
        Returns:
        The price per item
      • getTaxPerItem

        public int getTaxPerItem()
        Returns the GE tax per item. Per Grand Exchange rules: - Items sold for under 100gp will have no tax applied - Items between 100-5,000,000 will have a 1% tax applied - Items sold for more than 500m will have a maximum tax of 5,000,000
      • getWealthTransferred

        public int getWealthTransferred()
        Returns:
        The total number of coins spent/received so far on the offer.
      • getItemsTransferred

        public int getItemsTransferred()
        Returns:
        The total number of items sold/received so far on the offer.
      • getCompletion

        public double getCompletion()
        Returns:
        From 0-100, the percentage completion of the offer.
      • isBuyOffer

        public boolean isBuyOffer()
      • isSellOffer

        public boolean isSellOffer()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class java.lang.Object