TileItemEx
An item on the ground.
ClassRLPlugins API
public class TileItemEx implements EntityMembers
Constructors
- newTileItemEx(TileItem, WorldPoint)
Creates a TileItemEx.
- newTileItemEx(TileItem, WorldPoint, LocalPoint)
Retains an event's local coordinates after its ground item leaves scene queries.
- newTileItemEx(TileItem, WorldPoint, WorldView)
Creates a ground-item wrapper in the exact scene that owns the item.
- newTileItemEx(TileItem, WorldPoint, LocalPoint, WorldView)
Creates a TileItemEx.
Methods
- booleancanPickup()
Whether the current account mode is permitted to pick this item up.
- String[]getActions()
The right-click actions.
- intgetCanonicalId()
The plain item id. A noted or placeholder item gives the id of the normal item.
- intgetDespawnTime()
The client's absolute game-cycle deadline for this ground item.
- longgetGePrice()
The Grand Exchange price.
- intgetHighAlchValue()
The coins High Level Alchemy gives for it.
- intgetId()
The item id.
- WorldPointgetInteractionPoint()
A tile you can pick it up from.
- TileItemgetItem()
The RuneLite ground item behind it.
- LocalPointgetLocalPoint()
Where it is inside the loaded area, in local units.
- intgetLowAlchValue()
The coins Low Level Alchemy gives for it.
- StringgetName()
The item's name.
- intgetOwnership()
Ground-item ownership as reported by the client.
- intgetQuantity()
How many are in the pile.
- ShapegetShape()
Its outline on screen.
- intgetShopPrice()
Its base shop price.
- TilegetTile()
The tile it is on.
- WorldAreagetWorldArea()
The tiles it covers.
- WorldPointgetWorldLocation()
The tile it is on, as a world position.
- WorldPointgetWorldPoint()
The tile it is on, as a world position.
- WorldViewgetWorldView()
The world view it is in: the main world, or a boat.
- intgetWorldViewId()
The id of the world view it is in.
- booleanhasAction(String)
Checks if this item has the specified action.
- booleanhasActionContains(String)
Checks if this item has an action containing the specified text.
- voidinteract(String...)
Clicks one of its actions.
- voidinteract(int)
Clicks one of its actions.
- booleanisNoted()
Whether it is a bank note.
- booleanisStackable()
Checks if this item is stackable.
- booleanisTradeable()
Whether this item is tradeable.
TileItemEx(TileItem, WorldPoint)
public TileItemEx(TileItem item, WorldPoint worldPoint)Creates a TileItemEx.
Parameters
item- Item.
worldPoint- World point.
TileItemEx(TileItem, WorldPoint, LocalPoint)
public TileItemEx(TileItem item, WorldPoint worldPoint, LocalPoint localPoint)Retains an event's local coordinates after its ground item leaves scene queries.
Parameters
item- Item.
worldPoint- World point.
localPoint- Local point.
TileItemEx(TileItem, WorldPoint, WorldView)
public TileItemEx(TileItem item, WorldPoint worldPoint, WorldView worldView)Creates a ground-item wrapper in the exact scene that owns the item.
Parameters
item- Item.
worldPoint- World point.
worldView- World view.
TileItemEx(TileItem, WorldPoint, LocalPoint, WorldView)
public TileItemEx(TileItem arg0, WorldPoint arg1, LocalPoint arg2, WorldView arg3)Creates a TileItemEx.
Parameters
arg0- Argument 0.
arg1- Argument 1.
arg2- Argument 2.
arg3- Argument 3.
canPickup()
public boolean canPickup()Whether the current account mode is permitted to pick this item up.
Mirrors the original ownership/account rule exactly: account mode zero may pick up anything; every other mode rejects OWNERSHIP_OTHER; and OWNERSHIP_GROUP is treated as OWNERSHIP_OTHER unless the account mode is 4 through 6.
Varbit 1777 is the account mode. It has no gameval constant in the RuneLite 1.12.38 API, so the id is written literally here.
Returns
True when pickup is permitted for the current account mode.
getActions()
public String[] getActions()The right-click actions.
getCanonicalId()
public int getCanonicalId()The plain item id. A noted or placeholder item gives the id of the normal item.
getDespawnTime()
public int getDespawnTime()The client's absolute game-cycle deadline for this ground item.
getGePrice()
public long getGePrice()The Grand Exchange price.
getHighAlchValue()
public int getHighAlchValue()The coins High Level Alchemy gives for it.
getId()
public int getId()The item id.
getInteractionPoint()
public WorldPoint getInteractionPoint()A tile you can pick it up from.
getItem()
public TileItem getItem()The RuneLite ground item behind it.
getLocalPoint()
public LocalPoint getLocalPoint()Where it is inside the loaded area, in local units.
getLowAlchValue()
public int getLowAlchValue()The coins Low Level Alchemy gives for it.
getName()
public String getName()The item's name.
getOwnership()
public int getOwnership()Ground-item ownership as reported by the client.
Returns
One of TileItem.OWNERSHIP_NONE, TileItem.OWNERSHIP_SELF, TileItem.OWNERSHIP_OTHER or TileItem.OWNERSHIP_GROUP.
getQuantity()
public int getQuantity()How many are in the pile.
getShape()
public Shape getShape()Its outline on screen.
getShopPrice()
public int getShopPrice()Its base shop price.
getTile()
public Tile getTile()The tile it is on.
getWorldArea()
public WorldArea getWorldArea()The tiles it covers.
getWorldLocation()
public WorldPoint getWorldLocation()The tile it is on, as a world position.
getWorldPoint()
public WorldPoint getWorldPoint()The tile it is on, as a world position.
getWorldView()
public WorldView getWorldView()The world view it is in: the main world, or a boat.
getWorldViewId()
public int getWorldViewId()The id of the world view it is in.
hasAction(String)
public boolean hasAction(String action)Checks if this item has the specified action.
Parameters
action- The action to check for (case-insensitive).
Returns
True if the action exists, false otherwise.
hasActionContains(String)
public boolean hasActionContains(String actionPart)Checks if this item has an action containing the specified text.
Parameters
actionPart- The text to search for in actions (case-insensitive).
Returns
True if any action contains the text, false otherwise.
interact(String...)
public void interact(String... actions)Clicks one of its actions.
Parameters
actions- Actions.
interact(int)
public void interact(int action)Clicks one of its actions.
Parameters
action- Action.
isNoted()
public boolean isNoted()Whether it is a bank note.
isStackable()
public boolean isStackable()Checks if this item is stackable.
Returns
True if the item can be stacked, false otherwise.
isTradeable()
public boolean isTradeable()Whether this item is tradeable.
Returns
True when the item definition is tradeable.
Also allowed
Every class has these, as in plain Java.
distanceTo, equals, isInteractable, toString