Class GrandExchangeItem

  • All Implemented Interfaces:
    Identifiable

    public class GrandExchangeItem
    extends java.lang.Object
    implements Identifiable
    • Constructor Summary

      Constructors 
      Constructor Description
      GrandExchangeItem​(java.lang.Object reference, int slot)
      Note: This shouldn't be used by API users, it's an internal constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getAmount()
      Gets the Amount of the trading post item
      byte getByte()
      Gets the byte value of the state for the trading post item
      int getID()
      Gets the ID of the trading post item
      Item getItem()
      Gets the Item that is in the trading post item slot
      java.lang.String getName()
      Gets the name of the trading post item
      int getPrice()
      Gets the price of the trading post item
      int getSlot()  
      Status getStatus()
      Gets the Status of the trading post item based on the current byte value.
      int getTransferredAmount()  
      int getTransferredValue()  
      int getValue()
      Gets the total value of the trading post item
      boolean isBuyOffer()
      Checks if the offer is a buy offer
      boolean isCanceled()
      Returns if the item was manually aborted
      boolean isReadyToCollect()
      Returns whether the item is ready to be collected or not
      boolean isSellOffer()
      Checks if the offer is a sell offer
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GrandExchangeItem

        public GrandExchangeItem​(java.lang.Object reference,
                                 int slot)
        Note: This shouldn't be used by API users, it's an internal constructor.
    • Method Detail

      • getStatus

        public Status getStatus()
        Gets the Status of the trading post item based on the current byte value.
        Returns:
        Status of trading post item.
      • isCanceled

        public boolean isCanceled()
        Returns if the item was manually aborted
        Returns:
        true if it was canceled
      • isReadyToCollect

        public boolean isReadyToCollect()
        Returns whether the item is ready to be collected or not
        Returns:
      • isBuyOffer

        public boolean isBuyOffer()
        Checks if the offer is a buy offer
        Returns:
        True if Buy offer
      • isSellOffer

        public boolean isSellOffer()
        Checks if the offer is a sell offer
        Returns:
      • getValue

        public int getValue()
        Gets the total value of the trading post item
        Returns:
        Total value of the trading post item
      • getItem

        public Item getItem()
        Gets the Item that is in the trading post item slot
        Returns:
        Item in trading post item slot
      • getName

        public java.lang.String getName()
        Gets the name of the trading post item
        Specified by:
        getName in interface Identifiable
        Returns:
      • getSlot

        public int getSlot()
      • getTransferredAmount

        public int getTransferredAmount()
      • getTransferredValue

        public int getTransferredValue()
      • getByte

        public byte getByte()
        Gets the byte value of the state for the trading post item
        Returns:
        byte value of the state of the trading post item
      • getID

        public int getID()
        Gets the ID of the trading post item
        Specified by:
        getID in interface Identifiable
        Returns:
        ID of the trading post item
      • getPrice

        public int getPrice()
        Gets the price of the trading post item
        Returns:
        Price of the trading post item
      • getAmount

        public int getAmount()
        Gets the Amount of the trading post item
        Returns:
        Amount of trading post item