Package rsb.wrappers
Class RSWidgetItem
java.lang.Object
rsb.methods.MethodProvider
rsb.wrappers.RSWidgetItem
-
Field Summary
Fields inherited from class rsb.methods.MethodProvider
methods -
Method Summary
Modifier and TypeMethodDescriptionbooleanPerforms the given action on this RSInterfaceChild if it is showing (valid).booleanPerforms the given action on this RSInterfaceChild if it is showing (valid).booleandoClick()Left-clicks this component.booleandoClick(boolean leftClick) Clicks this component.booleandoHover()Moves the mouse over this component (with normally distributed randomness) if it is not already.getArea()Gets the canvas area of the itemintGets the item id of this itemintGets the item's index in the parent widgetnet.runelite.api.PointintGets the stack size of the itembooleanisValid()
-
Method Details
-
isValid
public boolean isValid() -
doAction
Performs the given action on this RSInterfaceChild if it is showing (valid).- Parameters:
action- The menu action to click.- Returns:
trueif the action was clicked; otherwisefalse.
-
doAction
Performs the given action on this RSInterfaceChild if it is showing (valid).- Parameters:
action- The menu action to click.option- The option of the menu action to click.- Returns:
trueif the action was clicked; otherwisefalse.
-
doClick
public boolean doClick()Left-clicks this component.- Returns:
trueif the component was clicked.
-
doClick
public boolean doClick(boolean leftClick) Clicks this component.- Parameters:
leftClick-trueto left-click;falseto right-click.- Returns:
trueif the component was clicked.
-
doHover
public boolean doHover()Moves the mouse over this component (with normally distributed randomness) if it is not already.- Returns:
trueif the mouse was moved; otherwisefalse.
-
getArea
Gets the canvas area of the item- Returns:
- the canvas area
-
getItemId
public int getItemId()Gets the item id of this item- Returns:
- item id
-
getItemIndex
public int getItemIndex()Gets the item's index in the parent widget- Returns:
- item index
-
getStackSize
public int getStackSize()Gets the stack size of the item- Returns:
- the stack size
-
getItemLocation
public net.runelite.api.Point getItemLocation()
-