public class SimpleGroundItem extends Clickable implements SimpleActionable, SimpleIdentifiable, SimpleNamable, SimpleLocatable
Constructor and Description |
---|
SimpleGroundItem(net.runelite.api.TileItem item,
net.runelite.api.Tile tile) |
Modifier and Type | Method and Description |
---|---|
boolean |
click(int option)
Deprecated.
|
boolean |
click(java.lang.String action)
This makes mouse click with option
|
boolean |
click(java.lang.String action,
java.lang.String option) |
java.lang.String[] |
getActions()
Returns Actions of the object
|
java.awt.geom.Rectangle2D |
getClickBounds() |
int |
getId()
Returns id of the object
|
net.runelite.api.TileItem |
getItem() |
net.runelite.api.ItemComposition |
getItemDefinitions() |
net.runelite.api.coords.WorldPoint |
getLocation()
Position in world of object
|
java.lang.String |
getName()
The name of said object
|
int |
getQuantity() |
net.runelite.api.Tile |
getTile() |
boolean |
isStackable() |
clickOnMinimap, getPointForType, turnTo, validateInteractable, visibleOnScreen
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clickOnMinimap, distanceTo, within, withinRange
public SimpleGroundItem(net.runelite.api.TileItem item, net.runelite.api.Tile tile)
public net.runelite.api.coords.WorldPoint getLocation()
SimpleLocatable
getLocation
in interface SimpleLocatable
public java.lang.String getName()
SimpleNamable
getName
in interface SimpleNamable
public java.awt.geom.Rectangle2D getClickBounds()
public int getId()
SimpleIdentifiable
getId
in interface SimpleIdentifiable
public int getQuantity()
public net.runelite.api.ItemComposition getItemDefinitions()
public net.runelite.api.TileItem getItem()
public net.runelite.api.Tile getTile()
public boolean isStackable()
public java.lang.String[] getActions()
SimpleActionable
getActions
in interface SimpleActionable
public boolean click(java.lang.String action)
Clickable
public boolean click(java.lang.String action, java.lang.String option)