Package rs.kreme.ksbot.api.wrappers
Class KSObject
- java.lang.Object
-
- rs.kreme.ksbot.api.wrappers.KSObject
-
- All Implemented Interfaces:
Locatable
,Positionable
public class KSObject extends java.lang.Object implements Locatable
-
-
Constructor Summary
Constructors Constructor Description KSObject()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAction(java.lang.String... actions)
Checks if the item has a specific action.java.lang.String[]
getActions()
net.runelite.api.Point
getClickPoint()
int
getId()
net.runelite.api.coords.LocalPoint
getLocalLocation()
java.lang.String
getName()
net.runelite.api.coords.WorldPoint
getWorldLocation()
boolean
interact(int action)
boolean
interact(java.lang.String... action)
void
interact(net.runelite.api.MenuAction menuAction)
java.lang.String
toString()
Provides a string representation of the object-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface rs.kreme.ksbot.api.interfaces.Locatable
distanceTo, distanceTo, getPlane, getWorldX, getWorldY
-
-
-
-
Method Detail
-
getId
public int getId()
-
getName
public java.lang.String getName()
-
getActions
public java.lang.String[] getActions()
-
toString
public java.lang.String toString()
Provides a string representation of the object- Overrides:
toString
in classjava.lang.Object
- Returns:
- a formatted string describing the object.
-
interact
public boolean interact(int action)
-
interact
public boolean interact(java.lang.String... action)
-
getAction
public java.lang.String getAction(java.lang.String... actions)
Checks if the item has a specific action.- Parameters:
action
- the name of the action to check (e.g., "Use").- Returns:
String
if the action is available,null
otherwise.
-
getClickPoint
public net.runelite.api.Point getClickPoint()
-
interact
public void interact(net.runelite.api.MenuAction menuAction)
-
getLocalLocation
public net.runelite.api.coords.LocalPoint getLocalLocation()
- Specified by:
getLocalLocation
in interfaceLocatable
-
getWorldLocation
public net.runelite.api.coords.WorldPoint getWorldLocation()
- Specified by:
getWorldLocation
in interfaceLocatable
- Specified by:
getWorldLocation
in interfacePositionable
-
-