Package rsb.methods
Class Interfaces
java.lang.Object
rsb.methods.MethodProvider
rsb.methods.Interfaces
- Direct Known Subclasses:
NPCChat
Provides access to interfaces.
-
Field Summary
Fields inherited from class rsb.methods.MethodProvider
methods
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks for the click here to continue widgetboolean
clickComponent
(RSWidget c, String action) Performs the given action on this RSWidgetChild if it is showing (valid).boolean
Clicks the click here to continue widgetboolean
clickDialogueOption
(RSWidget inter, String option) Clicks the dialogue option that contains the desired string.get
(int index) Gets a widget corresponding to the indexgetComponent
(int index, int childIndex) Gets a widget corresponding to the indexesgetComponent
(net.runelite.api.widgets.WidgetInfo info) Gets a widget corresponding to the widget infogetComponent
(GlobalWidgetInfo info) Gets a widget corresponding to the widget infoGets the click here to continue widgetboolean
isInterfaceSubstantiated
(int index) boolean
isValid
(int index) boolean
makeX
(int amount) Uses the make interface to make items Use -1 to make allboolean
Scrolls to the componentboolean
Scrolls to the componentboolean
Waits for an interface to be closed/opened.
-
Constructor Details
-
Interfaces
-
-
Method Details
-
get
Gets a widget corresponding to the index- Parameters:
index
- The index of the interface.- Returns:
- The
RSWidget
for the given index.
-
getComponent
Gets a widget corresponding to the indexes- Parameters:
index
- The parent interface indexchildIndex
- The component index- Returns:
RSWidget
for the given index and child index.
-
getComponent
Gets a widget corresponding to the widget info- Parameters:
info
- The WidgetInfo for the corresponding RSWidget to retrieve- Returns:
- The RSWidget for the WidgetInfo
-
getComponent
Gets a widget corresponding to the widget info- Parameters:
info
- The WidgetInfo for the corresponding RSWidget to retrieve- Returns:
- The RSWidget for the WidgetInfo
-
canContinue
public boolean canContinue()Checks for the click here to continue widget- Returns:
true
if continue component is valid; otherwisefalse
.
-
clickContinue
public boolean clickContinue()Clicks the click here to continue widget- Returns:
true
if continue component was clicked; otherwisefalse
.
-
getContinueComponent
Gets the click here to continue widget- Returns:
RSWidget
containing "Click here to continue"; otherwise null.
-
clickComponent
Performs the given action on this RSWidgetChild if it is showing (valid).- Parameters:
c
- The component widget to clickaction
- The menu action to click.- Returns:
true
if the action was clicked; otherwisefalse
-
clickDialogueOption
Clicks the dialogue option that contains the desired string.- Parameters:
inter
- The interface of the dialogue menu.option
- The text we want to click.- Returns:
true
if the option was clicked; otherwisefalse
.
-
scrollTo
Scrolls to the component- Parameters:
component
- component to scroll toscrollBarID
- scrollbar to scroll with- Returns:
- true when scrolled successfully
-
scrollTo
Scrolls to the component- Parameters:
component
- component to scroll toscrollBar
- scrollbar to scroll with- Returns:
- true when scrolled successfully
-
waitFor
Waits for an interface to be closed/opened.- Parameters:
iface
- The interface to wait for.valid
- True if open, false if close.timer
- Milliseconds to wait for the interface to open/close.- Returns:
true
if the interface was successfully closed/opened.
-
isInterfaceSubstantiated
public boolean isInterfaceSubstantiated(int index) -
isValid
public boolean isValid(int index) -
makeX
public boolean makeX(int amount) Uses the make interface to make items Use -1 to make all- Parameters:
amount
- The number of items to make- Returns:
true
f the interface was interacted with; elsefalse
-