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 Details

    • addRecipe

      default void addRecipe(String name, 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 recipe
      output - IItemStack output of the recipe
      input - IIngredient input of the recipe
      xp - how much xp the player gets
      cookTime - 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 recipe
      category - The category of the recipe in the recipe book
      output - IItemStack output of the recipe
      input - IIngredient input of the recipe
      xp - how much xp the player gets
      cookTime - 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

      default void removeRecipe(IItemStack output, IIngredient input)
      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)