Class RecipeHandlerHelpers
java.lang.Object
org.cyclops.commoncapabilities.api.capability.recipehandler.RecipeHandlerHelpers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<IPrototypedIngredient<net.minecraft.world.item.ItemStack, Integer>> getPrototypesFromIngredient(net.minecraft.world.item.crafting.Ingredient ingredient) A heuristical method for converting an ingredient to a list of prototyped ingredients.static List<IPrototypedIngredient<net.minecraft.world.item.ItemStack, Integer>> getPrototypesFromIngredient(net.neoforged.neoforge.common.crafting.SizedIngredient ingredient) static <C extends net.minecraft.world.item.crafting.RecipeInput,T extends net.minecraft.world.item.crafting.Recipe<C>>
List<IPrototypedIngredient<net.minecraft.world.item.ItemStack, Integer>> getRecipeInputPrototypes(T recipe, int index) static <C extends net.minecraft.world.item.crafting.RecipeInput,T extends net.minecraft.world.item.crafting.Recipe<C>>
RecipeDefinitionrecipeToRecipeDefinition(net.minecraft.resources.ResourceLocation recipeId, T recipe, net.minecraft.core.HolderLookup.Provider lookupProvider)
-
Constructor Details
-
RecipeHandlerHelpers
public RecipeHandlerHelpers()
-
-
Method Details
-
getPrototypesFromIngredient
public static List<IPrototypedIngredient<net.minecraft.world.item.ItemStack,Integer>> getPrototypesFromIngredient(net.minecraft.world.item.crafting.Ingredient ingredient) A heuristical method for converting an ingredient to a list of prototyped ingredients.- Parameters:
ingredient- An ingredient.- Returns:
- A list of prototyped ingredients.
-
getPrototypesFromIngredient
public static List<IPrototypedIngredient<net.minecraft.world.item.ItemStack,Integer>> getPrototypesFromIngredient(net.neoforged.neoforge.common.crafting.SizedIngredient ingredient) -
recipeToRecipeDefinition
@Nullable public static <C extends net.minecraft.world.item.crafting.RecipeInput,T extends net.minecraft.world.item.crafting.Recipe<C>> RecipeDefinition recipeToRecipeDefinition(net.minecraft.resources.ResourceLocation recipeId, T recipe, net.minecraft.core.HolderLookup.Provider lookupProvider) -
getRecipeInputPrototypes
public static <C extends net.minecraft.world.item.crafting.RecipeInput,T extends net.minecraft.world.item.crafting.Recipe<C>> List<IPrototypedIngredient<net.minecraft.world.item.ItemStack,Integer>> getRecipeInputPrototypes(T recipe, int index)
-