Class Smithing
- java.lang.Object
-
- org.dreambot.api.methods.widget.helpers.Smithing
-
public class Smithing extends java.lang.ObjectThis helper class makes smithing items easier
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancanMake(int id)This will check if you can make at least one of the chosen itemstatic booleancanMake(java.lang.String itemName)This will check if you can make at least one of the chosen itemstatic booleancanMake(Filter<Item> filter)This will check if you can make at least one of the chosen itemstatic booleancanMake(Item item)This will check if you can make at least one of the chosen itemstatic intgetSelectedQuantity()This returns the currently selected quantitystatic booleanisOpen()This checks if the smithing interface is openstatic booleanmake(int id, int quantity)This will make the chosen itemstatic booleanmake(java.lang.String itemName, int quantity)This will make the chosen itemstatic booleanmake(Filter<Item> filter, int quantity)This will make the first matching itemstatic booleanmake(Item item, int quantity)This will make the chosen itemstatic booleanmakeAll(int id)This will make all of the chosen itemstatic booleanmakeAll(java.lang.String itemName)This will make all of the chosen itemstatic booleanmakeAll(Filter<Item> filter)This will make all of the first matching itemstatic booleanmakeAll(Item item)This will make all of the chosen itemstatic booleansetSelectedQuantity(int quantity)This will set the selected quantity on the interface
-
-
-
Method Detail
-
makeAll
public static boolean makeAll(java.lang.String itemName)
This will make all of the chosen item- Parameters:
itemName- Item name to make- Returns:
- true if it successfully sets the quantity and selects the item, false otherwise
-
makeAll
public static boolean makeAll(int id)
This will make all of the chosen item- Parameters:
id- Item id to make- Returns:
- true if it successfully sets the quantity and selects the item, false otherwise
-
makeAll
public static boolean makeAll(Item item)
This will make all of the chosen item- Parameters:
item- Item to make- Returns:
- true if it successfully sets the quantity and selects the item, false otherwise
-
makeAll
public static boolean makeAll(Filter<Item> filter)
This will make all of the first matching item- Parameters:
filter- Filter for a valid item- Returns:
- true if it successfully sets the quantity and selects the item, false otherwise
-
make
public static boolean make(java.lang.String itemName, int quantity)This will make the chosen item- Parameters:
itemName- Item name to makequantity- Quantity of the item to make- Returns:
- true if it successfully sets the quantity and selects the item, false otherwise
-
make
public static boolean make(int id, int quantity)This will make the chosen item- Parameters:
id- Item id to makequantity- Quantity of the item to make- Returns:
- true if it successfully sets the quantity and selects the item, false otherwise
-
make
public static boolean make(Filter<Item> filter, int quantity)
This will make the first matching item- Parameters:
filter- Filter for a valid itemquantity- Quantity of the item to make- Returns:
- true if it successfully sets the quantity and selects the item, false otherwise
-
make
public static boolean make(Item item, int quantity)
This will make the chosen item- Parameters:
item- Item to makequantity- Quantity of the item to make- Returns:
- true if it successfully sets the quantity and selects the item, false otherwise
-
getSelectedQuantity
public static int getSelectedQuantity()
This returns the currently selected quantity- Returns:
- 0 if the interface isn't open, -1 if all, or the selected quantity
-
setSelectedQuantity
public static boolean setSelectedQuantity(int quantity)
This will set the selected quantity on the interface- Parameters:
quantity- The quantity you'd like to set as selected, use -1 for all- Returns:
- true if successfully set, false otherwise
-
canMake
public static boolean canMake(java.lang.String itemName)
This will check if you can make at least one of the chosen item- Parameters:
itemName- Item name to check- Returns:
- true if it successfully can make at least one of the item, false otherwise
-
canMake
public static boolean canMake(int id)
This will check if you can make at least one of the chosen item- Parameters:
id- Item id to check- Returns:
- true if it successfully can make at least one of the item, false otherwise
-
canMake
public static boolean canMake(Item item)
This will check if you can make at least one of the chosen item- Parameters:
item- Item to check- Returns:
- true if it successfully can make at least one of the item, false otherwise
-
canMake
public static boolean canMake(Filter<Item> filter)
This will check if you can make at least one of the chosen item- Parameters:
filter- Item filter of matching item to check- Returns:
- true if it successfully can make at least one of the item, false otherwise
-
isOpen
public static boolean isOpen()
This checks if the smithing interface is open- Returns:
- true if it's open, false otherwise
-
-