Package rs.kreme.ksbot.api.wrappers
Class KSGroundItem
- java.lang.Object
 - 
- rs.kreme.ksbot.api.wrappers.KSGroundItem
 
 
- 
- All Implemented Interfaces:
 Interactable,Locatable,Positionable
public final class KSGroundItem extends java.lang.Object implements Locatable, Interactable
 
- 
- 
Constructor Summary
Constructors Constructor Description KSGroundItem(int id, int quantity)KSGroundItem(int id, int quantity, net.runelite.api.Tile tile)KSGroundItem(net.runelite.client.game.ItemStack itemStack) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String[]getActions()Retrieves the available actions for the item.longgetPrice()Gets the item's price.net.runelite.api.coords.WorldPointgetWorldLocation()Retrieves the world location of the ground item.voidinteract(int action)Interacts with the item based on the provided action index.voidinteract(int index, net.runelite.api.MenuAction menuAction)Deprecated.voidinteract(int index, net.runelite.api.MenuAction menuAction, int param0, int param1)Deprecated.booleaninteract(java.lang.String option)Interacts with the item based on the provided option string.voidinteract(net.runelite.api.MenuAction menuAction)Interacts with the item based on the provided MenuAction.booleanisNoted()Checks if the item is noted (i.e., has a note ID).java.lang.StringtoString()- 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait 
- 
Methods inherited from interface rs.kreme.ksbot.api.interfaces.Interactable
getClickBounds, getOptionIndex, hasAction 
- 
Methods inherited from interface rs.kreme.ksbot.api.interfaces.Locatable
distanceTo, distanceTo, getLocalLocation, getPlane, getWorldX, getWorldY 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getWorldLocation
public net.runelite.api.coords.WorldPoint getWorldLocation()
Retrieves the world location of the ground item.- Specified by:
 getWorldLocationin interfaceLocatable- Specified by:
 getWorldLocationin interfacePositionable- Returns:
 - The WorldPoint of the ground item.
 
 
- 
isNoted
public boolean isNoted()
Checks if the item is noted (i.e., has a note ID).- Returns:
 - true if the item is noted, false otherwise.
 
 
- 
getPrice
public long getPrice()
Gets the item's price.- Returns:
 - The price of the item.
 
 
- 
interact
public void interact(int action)
Interacts with the item based on the provided action index.- Specified by:
 interactin interfaceInteractable- Parameters:
 action- The action index.
 
- 
interact
public boolean interact(java.lang.String option)
Interacts with the item based on the provided option string.- Specified by:
 interactin interfaceInteractable- Parameters:
 option- The action string.
 
- 
getActions
public java.lang.String[] getActions()
Retrieves the available actions for the item.- Specified by:
 getActionsin interfaceInteractable- Returns:
 - An array of available actions.
 
 
- 
interact
public void interact(net.runelite.api.MenuAction menuAction)
Interacts with the item based on the provided MenuAction.- Specified by:
 interactin interfaceInteractable- Parameters:
 menuAction- The MenuAction to perform.
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
- 
interact
@Deprecated public void interact(int index, net.runelite.api.MenuAction menuAction, int param0, int param1)Deprecated.- Specified by:
 interactin interfaceInteractable
 
- 
interact
@Deprecated public void interact(int index, net.runelite.api.MenuAction menuAction)Deprecated.- Specified by:
 interactin interfaceInteractable
 
 - 
 
 -