Package rsb.wrappers
Class RSWidgetItem
java.lang.Object
rsb.methods.MethodProvider
rsb.wrappers.RSWidgetItem
- 
Field SummaryFields inherited from class rsb.methods.MethodProvidermethods
- 
Method SummaryModifier 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- 
isValidpublic boolean isValid()
- 
doActionPerforms the given action on this RSInterfaceChild if it is showing (valid).- Parameters:
- action- The menu action to click.
- Returns:
- trueif the action was clicked; otherwise- false.
 
- 
doActionPerforms 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; otherwise- false.
 
- 
doClickpublic boolean doClick()Left-clicks this component.- Returns:
- trueif the component was clicked.
 
- 
doClickpublic boolean doClick(boolean leftClick) Clicks this component.- Parameters:
- leftClick-- trueto left-click;- falseto right-click.
- Returns:
- trueif the component was clicked.
 
- 
doHoverpublic boolean doHover()Moves the mouse over this component (with normally distributed randomness) if it is not already.- Returns:
- trueif the mouse was moved; otherwise- false.
 
- 
getAreaGets the canvas area of the item- Returns:
- the canvas area
 
- 
getItemIdpublic int getItemId()Gets the item id of this item- Returns:
- item id
 
- 
getItemIndexpublic int getItemIndex()Gets the item's index in the parent widget- Returns:
- item index
 
- 
getStackSizepublic int getStackSize()Gets the stack size of the item- Returns:
- the stack size
 
- 
getItemLocationpublic net.runelite.api.Point getItemLocation()
 
-