public class SimpleObject extends Clickable implements SimpleActionable, SimpleIdentifiable, SimpleNamable, SimpleLocatable
Constructor and Description |
---|
SimpleObject(net.runelite.api.TileObject to) |
SimpleObject(net.runelite.api.TileObject to,
int objectId) |
Modifier and Type | Method and Description |
---|---|
boolean |
click(int option) |
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.coords.WorldPoint |
getLocation()
Position in world of object
|
java.lang.String |
getName()
The name of said object
|
net.runelite.api.ObjectComposition |
getObjectDefinitions() |
net.runelite.api.TileObject |
getTileObject() |
boolean |
isImposter() |
boolean |
visibleOnScreen() |
clickOnMinimap, getPointForType, turnTo, validateInteractable
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clickOnMinimap, distanceTo, within, withinRange
public SimpleObject(net.runelite.api.TileObject to)
public SimpleObject(net.runelite.api.TileObject to, int objectId)
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 net.runelite.api.ObjectComposition getObjectDefinitions()
public net.runelite.api.TileObject getTileObject()
public net.runelite.api.coords.WorldPoint getLocation()
SimpleLocatable
getLocation
in interface SimpleLocatable
public java.lang.String[] getActions()
SimpleActionable
getActions
in interface SimpleActionable
public boolean isImposter()
public boolean click(java.lang.String action)
Clickable
public boolean click(java.lang.String action, java.lang.String option)
public boolean visibleOnScreen()
visibleOnScreen
in class Clickable