Package com.minecolonies.core.util
Class FurnaceRecipes
java.lang.Object
com.minecolonies.core.util.FurnaceRecipes
- All Implemented Interfaces:
IFurnaceRecipes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable RecipeStorageGet the first smelting recipe by result for a certain itemStorage.net.minecraft.world.item.ItemStackgetSmeltingResult(net.minecraft.world.item.ItemStack itemStack) Get the smelting result for a certain itemStack.voidloadRecipes(net.minecraft.world.item.crafting.RecipeManager recipeManager, net.minecraft.world.level.Level level) Load all the recipes in the recipe storage.
-
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:IFurnaceRecipesGet the smelting result for a certain itemStack.- Specified by:
getSmeltingResultin interfaceIFurnaceRecipes- Parameters:
itemStack- the itemStack to test.- Returns:
- the result or empty if not existent.
-
getFirstSmeltingRecipeByResult
Description copied from interface:IFurnaceRecipesGet the first smelting recipe by result for a certain itemStorage.- Specified by:
getFirstSmeltingRecipeByResultin interfaceIFurnaceRecipes- Parameters:
storage- the itemStorage to test.- Returns:
- the result or null if not existent.
-