Enum Class RecipeStation

java.lang.Object
java.lang.Enum<RecipeStation>
dev.itsharshxd.zentrix.api.recipe.RecipeStation
All Implemented Interfaces:
Serializable, Comparable<RecipeStation>, Constable

public enum RecipeStation extends Enum<RecipeStation>
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
  • Enum Constant Details

    • CRAFTING_TABLE

      public static final RecipeStation CRAFTING_TABLE
      Shaped or shapeless crafting.
    • FURNACE

      public static final RecipeStation FURNACE
      Furnace smelting.
    • BLAST_FURNACE

      public static final RecipeStation BLAST_FURNACE
      Blast furnace smelting.
    • SMOKER

      public static final RecipeStation SMOKER
      Smoker cooking.
    • CAMPFIRE

      public static final RecipeStation CAMPFIRE
      Campfire cooking; awards no experience.
    • STONECUTTER

      public static final RecipeStation STONECUTTER
      Stonecutting.
    • OTHER

      public static final RecipeStation 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 through RecipeBuilder.
  • Field Details

    • MAX_FURNACE_COOKING_TIME

      public static final int MAX_FURNACE_COOKING_TIME
      The 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_TIME
      The longest cooking time, in ticks, Zentrix keeps for a campfire: one hour.
      See Also:
  • Method Details

    • values

      public static RecipeStation[] 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

      public static RecipeStation valueOf(String name)
      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 name
      NullPointerException - 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.