Enum Class SmithingRecipeManager

java.lang.Object
java.lang.Enum<SmithingRecipeManager>
com.blamejared.crafttweaker.api.recipe.manager.SmithingRecipeManager
All Implemented Interfaces:
CommandStringDisplayable, IRecipeManager<net.minecraft.world.item.crafting.SmithingRecipe>, Serializable, Comparable<SmithingRecipeManager>, Constable, Iterable<net.minecraft.world.item.crafting.SmithingRecipe>

@ZenRegister public enum SmithingRecipeManager extends Enum<SmithingRecipeManager> implements IRecipeManager<net.minecraft.world.item.crafting.SmithingRecipe>
DocParam:
this smithing
  • Enum Constant Details

  • Method Details

    • values

      public static SmithingRecipeManager[] 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 SmithingRecipeManager 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
    • addTrimRecipe

      public void addTrimRecipe(String recipeName, IIngredient template, IIngredient base, IIngredient addition)
      Adds a new trim recipe to the smithing table.
      Parameters:
      recipeName - Name of the recipe.
      template - The template to use.
      base - The initial ingredient for the recipe.
      addition - The item added to the base item.
      DocParam:
      recipeName "recipe_name", result <item:minecraft:golden_apple>, base <item:minecraft:apple>, addition <tag:items:forge:ingots/gold>
    • addTransformRecipe

      public void addTransformRecipe(String recipeName, IItemStack result, IIngredient template, IIngredient base, IIngredient addition)
      Adds a new transform recipe to the smithing table.
      Parameters:
      recipeName - Name of the recipe.
      result - The item created by the recipe.
      template - The template to use.
      base - The initial ingredient for the recipe.
      addition - The item added to the base item.
      DocParam:
      recipeName "recipe_name", result <item:minecraft:golden_apple>, base <item:minecraft:apple>, addition <tag:items:forge:ingots/gold>
    • getRecipeType

      public net.minecraft.world.item.crafting.RecipeType<net.minecraft.world.item.crafting.SmithingRecipe> getRecipeType()
      Description copied from interface: IRecipeManager
      Gets the recipe type for the registry to remove from.
      Specified by:
      getRecipeType in interface IRecipeManager<net.minecraft.world.item.crafting.SmithingRecipe>
      Returns:
      IRecipeType of this registry.