Class MakeAllInterface
- java.lang.Object
-
- com.runemate.game.api.osrs.local.hud.interfaces.MakeAllInterface
-
public class MakeAllInterface extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MakeAllInterface()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<java.lang.String>
getSelectableItems()
static java.util.Collection<java.lang.Integer>
getSelectableQuantities()
The available quantities where 0 represents "all" and -1 represents "X"static int
getSelectedQuantity()
Gets the selected quantity, where 0 represents "All" and -1 represents "X" (only selected when the enter quantity dialog is shown)static boolean
isOpen()
static boolean
selectItem(java.lang.String name)
Selects the item with the given name if available using player sense to decide if hotkeys or clicking should be used.static boolean
selectItem(java.lang.String name, boolean useHotkey)
Selects the item with the given name if available using hotkeys if specified, otherwise clicking.static boolean
selectItem(java.util.regex.Pattern name)
Selects the item with the given name if available using player sense to decide if hotkeys or clicking should be used.static boolean
selectItem(java.util.regex.Pattern name, boolean useHotkey)
static boolean
setSelectedQuantity(int quantity)
Sets the selected quantity where a value of 0 represents selecting "All"
-
-
-
Method Detail
-
isOpen
public static boolean isOpen()
-
getSelectedQuantity
public static int getSelectedQuantity()
Gets the selected quantity, where 0 represents "All" and -1 represents "X" (only selected when the enter quantity dialog is shown)- Returns:
- The selected quantity if the interface is available, where 0 represents "All". Returns -1 if the interface isn't available or if the interface isn't visible because the enter quantity dialog is displayed.
-
setSelectedQuantity
public static boolean setSelectedQuantity(int quantity)
Sets the selected quantity where a value of 0 represents selecting "All"- Parameters:
quantity
- 0 for "All", otherwise the desired value.- Returns:
- true if the desired quantity is set
-
getSelectableItems
public static java.util.List<java.lang.String> getSelectableItems()
-
getSelectableQuantities
public static java.util.Collection<java.lang.Integer> getSelectableQuantities()
The available quantities where 0 represents "all" and -1 represents "X"- Returns:
- a non-null Collection of Integers
-
selectItem
public static boolean selectItem(java.lang.String name)
Selects the item with the given name if available using player sense to decide if hotkeys or clicking should be used.- Parameters:
name
-- Returns:
- true if the given item was selected.
-
selectItem
public static boolean selectItem(java.util.regex.Pattern name)
Selects the item with the given name if available using player sense to decide if hotkeys or clicking should be used.- Parameters:
name
-- Returns:
- true if the given item was selected.
-
selectItem
public static boolean selectItem(java.lang.String name, boolean useHotkey)
Selects the item with the given name if available using hotkeys if specified, otherwise clicking.- Parameters:
name
-- Returns:
- true if the given item was selected.
-
selectItem
public static boolean selectItem(java.util.regex.Pattern name, boolean useHotkey)
-
-