Package appeng.api.networking.crafting
Enum Class CraftingSubmitErrorCode
- All Implemented Interfaces:
Serializable
,Comparable<CraftingSubmitErrorCode>
,Constable
Gives a reason for why submitting the crafting job failed.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe selected crafting CPU is already working on something else.The CPU is currently offline (no power or not enough channels).The CPU is too small to process the job.Trying to submit a plan that is incomplete.Could not obtain one of the ingredients needed for the job.Couldn't find any CPUs to execute this job.None of the available CPUs are suitable to execute this job. -
Method Summary
Modifier and TypeMethodDescriptionstatic CraftingSubmitErrorCode
Returns the enum constant of this class with the specified name.static CraftingSubmitErrorCode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INCOMPLETE_PLAN
Trying to submit a plan that is incomplete. Plans that return true forICraftingPlan.simulation()
are incomplete. -
NO_CPU_FOUND
Couldn't find any CPUs to execute this job. -
NO_SUITABLE_CPU_FOUND
None of the available CPUs are suitable to execute this job.ICraftingSubmitResult.errorDetail()
contains an instance ofUnsuitableCpus
giving details as to why available CPUs are unsuitable. -
CPU_BUSY
The selected crafting CPU is already working on something else. -
CPU_OFFLINE
The CPU is currently offline (no power or not enough channels). -
CPU_TOO_SMALL
The CPU is too small to process the job. -
MISSING_INGREDIENT
Could not obtain one of the ingredients needed for the job.ICraftingSubmitResult.errorDetail()
is aGenericStack
explaining what is missing.
-
-
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
-