MakeScreen

public class MakeScreen

Contains methods regarding the commonly used 'make' interface. For example, it appears when cooking or combining items

Types

Quantity
Link copied to clipboard
public enum Quantity
SelectPreference
Link copied to clipboard
public enum SelectPreference

Functions

contains
Link copied to clipboard
static boolean contains(Array<int> id)
Checks if the make screen contains an item with the specified id
static boolean contains(Array<String> name)
Checks if the make screen contains an item with the specified name
static boolean contains(Predicate<Item> filter)
Checks if the make screen contains an item that matches the filter
getCustomQuantity
Link copied to clipboard
static Optional<IntegergetCustomQuantity()
Gets the currently selected custom quantity, if a custom quantity is selected
getQuantity
Link copied to clipboard
static MakeScreen.Quantity getQuantity()
Gets the currently selected quantity in the make screen.
isOpen
Link copied to clipboard
static boolean isOpen()
Checks if the make screen is open
make
Link copied to clipboard
static boolean make(Array<int> id)
Attempts to make an item with the specified id
static boolean make(Array<String> name)
Attempts to make an item with the specified name
static boolean make(Predicate<Item> filter)
Attempts to make an item matching the filter
makeAll
Link copied to clipboard
static boolean makeAll(Array<int> id)
Utility method to set the quantity to all if not already set, then makes an item with the specified id
static boolean makeAll(Array<String> name)
Utility method to set the quantity to all if not already set, then makes an item with the specified name
static boolean makeAll(Predicate<Item> filter)
Utility method to set the quantity to all if not already set, then makes an item matching the filter
setCustomQuantity
Link copied to clipboard
static boolean setCustomQuantity(int quantity)
Sets the custom quantity
setQuantity
Link copied to clipboard
static boolean setQuantity(MakeScreen.Quantity quantity)
Sets the specified quantity.
setSelectPreference
Link copied to clipboard
static void setSelectPreference(MakeScreen.SelectPreference pref)
Sets the make all item select preference.

Properties

selectPreference
Link copied to clipboard
private final static ScriptLocal<MakeScreen.SelectPreferenceselectPreference