Enum Class RecipeStation
- All Implemented Interfaces:
Serializable,Comparable<RecipeStation>,Constable
The workstation a custom recipe is made at.
The crafting table holds both shaped and shapeless recipes - ZentrixRecipe.getType()
tells them apart. Every other station takes exactly one input. Cooking stations also have a
cooking time, and all but the campfire award experience.
- Since:
- 1.8.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBlast furnace smelting.Campfire cooking; awards no experience.Shaped or shapeless crafting.Furnace smelting.A recipe type Zentrix loads but has no editor for, such as a hand-written smithing recipe.Smoker cooking.Stonecutting. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe longest cooking time, in ticks, Zentrix keeps for a campfire: one hour.static final intThe longest cooking time, in ticks, the furnace, blast furnace and smoker keep: they store it as a signed short. -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether recipes at this station award experience.intVanilla's cooking time at this station, in ticks; 0 when it does not cook.intThe longest cooking time this station keeps, in ticks; 0 when it does not cook.booleanWhether recipes at this station have a cooking time.booleanWhether recipes at this station take exactly one input.static RecipeStationReturns the enum constant of this class with the specified name.static RecipeStation[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CRAFTING_TABLE
Shaped or shapeless crafting. -
FURNACE
Furnace smelting. -
BLAST_FURNACE
Blast furnace smelting. -
SMOKER
Smoker cooking. -
CAMPFIRE
Campfire cooking; awards no experience. -
STONECUTTER
Stonecutting. -
OTHER
A recipe type Zentrix loads but has no editor for, such as a hand-written smithing recipe. Reported as it is rather than as a crafting recipe; it cannot be built throughRecipeBuilder.
-
-
Field Details
-
MAX_FURNACE_COOKING_TIME
public static final int MAX_FURNACE_COOKING_TIMEThe longest cooking time, in ticks, the furnace, blast furnace and smoker keep: they store it as a signed short.- See Also:
-
MAX_CAMPFIRE_COOKING_TIME
public static final int MAX_CAMPFIRE_COOKING_TIMEThe longest cooking time, in ticks, Zentrix keeps for a campfire: one hour.- See Also:
-
-
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
-
isSingleInput
public boolean isSingleInput()Whether recipes at this station take exactly one input. -
isCooking
public boolean isCooking()Whether recipes at this station have a cooking time. -
awardsExperience
public boolean awardsExperience()Whether recipes at this station award experience. -
getDefaultCookingTime
public int getDefaultCookingTime()Vanilla's cooking time at this station, in ticks; 0 when it does not cook. -
getMaxCookingTime
public int getMaxCookingTime()The longest cooking time this station keeps, in ticks; 0 when it does not cook.
-