Class Smithing


  • public class Smithing
    extends java.lang.Object
    This helper class makes smithing items easier
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean canMake​(int id)
      This will check if you can make at least one of the chosen item
      static boolean canMake​(java.lang.String itemName)
      This will check if you can make at least one of the chosen item
      static boolean canMake​(Filter<Item> filter)
      This will check if you can make at least one of the chosen item
      static boolean canMake​(Item item)
      This will check if you can make at least one of the chosen item
      static int getSelectedQuantity()
      This returns the currently selected quantity
      static boolean isOpen()
      This checks if the smithing interface is open
      static boolean make​(int id, int quantity)
      This will make the chosen item
      static boolean make​(java.lang.String itemName, int quantity)
      This will make the chosen item
      static boolean make​(Filter<Item> filter, int quantity)
      This will make the first matching item
      static boolean make​(Item item, int quantity)
      This will make the chosen item
      static boolean makeAll​(int id)
      This will make all of the chosen item
      static boolean makeAll​(java.lang.String itemName)
      This will make all of the chosen item
      static boolean makeAll​(Filter<Item> filter)
      This will make all of the first matching item
      static boolean makeAll​(Item item)
      This will make all of the chosen item
      static boolean setSelectedQuantity​(int quantity)
      This will set the selected quantity on the interface
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 make
        quantity - 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 make
        quantity - 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 item
        quantity - 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 make
        quantity - 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