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 intgetAmount()Gets the Amount of the trading post itembytegetByte()Gets the byte value of the state for the trading post itemintgetId()Gets the ID of the trading post itemItemgetItem()Gets the Item that is in the trading post item slotjava.lang.StringgetName()Gets the name of the trading post itemintgetPrice()Gets the price of the trading post itemintgetSlot()StatusgetStatus()Gets the Status of the trading post item based on the current byte value.intgetTransferredAmount()intgetTransferredValue()intgetValue()Gets the total value of the trading post itembooleanisBuyOffer()Checks if the offer is a buy offerbooleanisCanceled()Returns if the item was manually abortedbooleanisReadyToCollect()Returns whether the item is ready to be collected or notbooleanisSellOffer()Checks if the offer is a sell offer-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.dreambot.api.wrappers.interactive.Identifiable
getID
-
-
-
-
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:
getNamein 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:
getIdin 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
-
-