Package net.storm.api.widgets
Enum Class ProductionQuantity
- All Implemented Interfaces:
Serializable,Comparable<ProductionQuantity>,Constable
Enumeration of quantity options available in production interfaces.
Production interfaces (such as those for crafting, smithing, cooking, etc.) provide several preset quantity options that determine how many items to produce. This enum represents these options and provides methods to interact with them.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if this quantity option is currently selected (highlighted) in the interface.booleanChecks if this quantity option is currently visible in the production interface.booleanselect()Selects this quantity option by clicking on it.static ProductionQuantityReturns the enum constant of this class with the specified name.static ProductionQuantity[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ONE
Produce 1 item. -
FIVE
Produce 5 items. -
TEN
Produce 10 items. -
X_SET
Set a custom quantity (opens input dialog). -
X
Use the previously set custom quantity. -
ALL
Produce all possible items.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isVisible
public boolean isVisible()Checks if this quantity option is currently visible in the production interface.- Returns:
trueif the quantity option is visible,falseotherwise
-
select
public boolean select()Selects this quantity option by clicking on it.- Returns:
trueif the option was successfully selected,falseif not visible
-
isSelected
public boolean isSelected()Checks if this quantity option is currently selected (highlighted) in the interface.- Returns:
trueif this option is selected,falseotherwise
-