Class FurnaceRecipes

java.lang.Object
com.minecolonies.core.util.FurnaceRecipes
All Implemented Interfaces:
IFurnaceRecipes

public class FurnaceRecipes extends Object implements IFurnaceRecipes
  • Constructor Details

    • FurnaceRecipes

      public FurnaceRecipes()
  • Method Details

    • loadRecipes

      public void loadRecipes(net.minecraft.world.item.crafting.RecipeManager recipeManager, net.minecraft.world.level.Level level)
      Load all the recipes in the recipe storage.
      Parameters:
      recipeManager - The recipe manager to parse.
    • getSmeltingResult

      public net.minecraft.world.item.ItemStack getSmeltingResult(net.minecraft.world.item.ItemStack itemStack)
      Description copied from interface: IFurnaceRecipes
      Get the smelting result for a certain itemStack.
      Specified by:
      getSmeltingResult in interface IFurnaceRecipes
      Parameters:
      itemStack - the itemStack to test.
      Returns:
      the result or empty if not existent.
    • getFirstSmeltingRecipeByResult

      @Nullable public @Nullable RecipeStorage getFirstSmeltingRecipeByResult(ItemStorage storage)
      Description copied from interface: IFurnaceRecipes
      Get the first smelting recipe by result for a certain itemStorage.
      Specified by:
      getFirstSmeltingRecipeByResult in interface IFurnaceRecipes
      Parameters:
      storage - the itemStorage to test.
      Returns:
      the result or null if not existent.