Class GrandExchangeItem
- java.lang.Object
-
- org.dreambot.api.methods.grandexchange.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 itembyte
getByte()
Gets the byte value of the state for the trading post itemint
getID()
Gets the ID of the trading post itemItem
getItem()
Gets the Item that is in the trading post item slotjava.lang.String
getName()
Gets the name of the trading post itemint
getPrice()
Gets the price of the trading post itemint
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 itemboolean
isBuyOffer()
Checks if the offer is a buy offerboolean
isCanceled()
Returns if the item was manually abortedboolean
isReadyToCollect()
Returns whether the item is ready to be collected or notboolean
isSellOffer()
Checks if the offer is a sell offer
-
-
-
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 interfaceIdentifiable
- 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 interfaceIdentifiable
- 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
-
-