Class SmithingRecipeManager
java.lang.Object
com.blamejared.crafttweaker.api.recipe.manager.SmithingRecipeManager
- All Implemented Interfaces:
CommandStringDisplayable,IRecipeManager<net.minecraft.world.item.crafting.SmithingRecipe>,Iterable<net.minecraft.world.item.crafting.RecipeHolder<net.minecraft.world.item.crafting.SmithingRecipe>>
@ZenRegister
public class SmithingRecipeManager
extends Object
implements IRecipeManager<net.minecraft.world.item.crafting.SmithingRecipe>
- DocParam:
- this smithing
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTransformRecipe(String recipeName, IItemStack result, IIngredient template, IIngredient base, IIngredient addition) Adds a new transform recipe to the smithing table.voidaddTrimRecipe(String recipeName, IIngredient template, IIngredient base, IIngredient addition) Adds a new trim recipe to the smithing table.net.minecraft.world.item.crafting.RecipeType<net.minecraft.world.item.crafting.SmithingRecipe> Gets the recipe type for the registry to remove from.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.blamejared.crafttweaker.api.recipe.manager.base.IRecipeManager
addJsonRecipe, createHolder, fixRecipeId, fixRecipeId, fixRecipeName, getAllRecipes, getBracketResourceLocation, getCommandString, getRecipeByName, getRecipeList, getRecipeMap, getRecipes, getRecipesByOutput, getRecipesMatching, iterator, remove, removeAll, removeByInput, removeByModid, removeByName, removeByRegex, removeMatchingMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
INSTANCE
-
-
Method Details
-
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 invalid input: '<'item:minecraft:golden_apple>, base invalid input: '<'item:minecraft:apple>, addition invalid input: '<'tag:item: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 invalid input: '<'item:minecraft:golden_apple>, base invalid input: '<'item:minecraft:apple>, addition invalid input: '<'tag:item:forge:ingots/gold>
-
getRecipeType
public net.minecraft.world.item.crafting.RecipeType<net.minecraft.world.item.crafting.SmithingRecipe> getRecipeType()Description copied from interface:IRecipeManagerGets the recipe type for the registry to remove from.- Specified by:
getRecipeTypein interfaceIRecipeManager<net.minecraft.world.item.crafting.SmithingRecipe>- Returns:
- IRecipeType of this registry.
-