Package appeng.api.networking.crafting
Enum Class CalculationStrategy
- All Implemented Interfaces:
Serializable
,Comparable<CalculationStrategy>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTry to craft less items than requested.If the exact requested amount cannot be crafted, create aICraftingPlan
containing the missing items. -
Method Summary
Modifier and TypeMethodDescriptionstatic CalculationStrategy
Returns the enum constant of this class with the specified name.static CalculationStrategy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REPORT_MISSING_ITEMS
If the exact requested amount cannot be crafted, create aICraftingPlan
containing the missing items. -
CRAFT_LESS
Try to craft less items than requested. Will try to craft as many items as possible. If even1
cannot be crafted, fall back toREPORT_MISSING_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
-