Interface ICookingRecipeManager<T extends net.minecraft.world.item.crafting.AbstractCookingRecipe>
- All Superinterfaces:
CommandStringDisplayable,IRecipeManager<T>,Iterable<net.minecraft.world.item.crafting.RecipeHolder<T>>
- All Known Implementing Classes:
BlastFurnaceRecipeManager,CampFireRecipeManager,FurnaceRecipeManager,SmokerRecipeManager
@ZenRegister
public interface ICookingRecipeManager<T extends net.minecraft.world.item.crafting.AbstractCookingRecipe>
extends IRecipeManager<T>
Default interface for Registry based handlers as they can all remove recipes by ResourceLocation.
- DocParam:
- this furnace
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidaddRecipe(String name, IItemStack output, IIngredient input, float xp, int cookTime) Adds a recipe based on given params.default voidaddRecipe(String name, net.minecraft.world.item.crafting.CookingBookCategory category, IItemStack output, IIngredient input, float xp, int cookTime) Adds a recipe based on given params.net.minecraft.world.item.crafting.RecipeHolder<T> makeRecipe(String name, net.minecraft.world.item.crafting.CookingBookCategory category, IItemStack output, IIngredient input, float xp, int cookTime) default voidremoveRecipe(IItemStack output, IIngredient input) Removes a recipe based on it's output and input.Methods 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, getRecipeType, iterator, remove, removeAll, removeByInput, removeByModid, removeByName, removeByRegex, removeMatchingMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
addRecipe
Adds a recipe based on given params. Note: A `cookTime` of `0` will cause the recipe to never complete, it will burn and use fuel, but no progress will be made on the recipe, it needs to be at-least `1` or more. Saying that, if you would like to make a recipe that will never complete (for example being able to give the player an infinitely burning furnace for whatever reason), you can still use a `cookTime` of `0`.- Parameters:
name- Name of the new recipeoutput- IItemStack output of the recipeinput- IIngredient input of the recipexp- how much xp the player getscookTime- how long it takes to cook- DocParam:
- name "wool2diamond", output invalid input: '<'item:minecraft:diamond>, input invalid input: '<'tag:item:minecraft:wool>, xp 1.0, cookTime 30
-
addRecipe
default void addRecipe(String name, net.minecraft.world.item.crafting.CookingBookCategory category, IItemStack output, IIngredient input, float xp, int cookTime) Adds a recipe based on given params. Note: A `cookTime` of `0` will cause the recipe to never complete, it will burn and use fuel, but no progress will be made on the recipe, it needs to be at-least `1` or more. Saying that, if you would like to make a recipe that will never complete (for example being able to give the player an infinitely burning furnace for whatever reason), you can still use a `cookTime` of `0`.- Parameters:
name- Name of the new recipecategory- The category of the recipe in the recipe bookoutput- IItemStack output of the recipeinput- IIngredient input of the recipexp- how much xp the player getscookTime- how long it takes to cook- DocParam:
- name "wool2diamond", category invalid input: '<'constant:minecraft:cookingbookcategory:misc>, output invalid input: '<'item:minecraft:diamond>, input invalid input: '<'tag:item:minecraft:wool>, xp 1.0, cookTime 30
-
removeRecipe
Removes a recipe based on it's output and input.- Parameters:
output- IItemStack output of the recipe.input- IIngredient of the recipe to remove.- DocParam:
- output invalid input: '<'item:minecraft:diamond>, input invalid input: '<'tag:item:minecraft:wool>
-
makeRecipe
net.minecraft.world.item.crafting.RecipeHolder<T> makeRecipe(String name, net.minecraft.world.item.crafting.CookingBookCategory category, IItemStack output, IIngredient input, float xp, int cookTime)
-