Class GroundItem
- java.lang.Object
-
- com.kraken.api.query.groundobject.GroundItem
-
public class GroundItem extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description GroundItem()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAlchemyPrice()Returns the High Alchemy price of the item multiplied by the quantity on the ground.intgetGrandExchangePrice()Returns the Grand Exchange price of the item multiplied by the quantity on the ground.static java.lang.String[]getGroundItemActions(net.runelite.api.ItemComposition item)Returns a list of actions which can be performed on the Tile object.booleanisOwnedByLocalPlayer()True if the ground item belongs to the local player and false otherwise.
-
-
-
Method Detail
-
getAlchemyPrice
public int getAlchemyPrice()
Returns the High Alchemy price of the item multiplied by the quantity on the ground.- Returns:
- The High Alchemy price of the item multiplied by the quantity on the ground
-
getGrandExchangePrice
public int getGrandExchangePrice()
Returns the Grand Exchange price of the item multiplied by the quantity on the ground. To retrieve only the GE price of a single item usegetGePrice()- Returns:
- The Grand Exchange price of the item multiplied by the quantity on the ground
-
getGroundItemActions
public static java.lang.String[] getGroundItemActions(net.runelite.api.ItemComposition item)
Returns a list of actions which can be performed on the Tile object. Generally this will be "Take" or "Examine".- Parameters:
item- The item composition of the ground item to get actions for- Returns:
- A list of actions which can be performed on the tile object
-
isOwnedByLocalPlayer
public boolean isOwnedByLocalPlayer()
True if the ground item belongs to the local player and false otherwise.- Returns:
- Boolean
-
-