java.lang.Object
org.cyclops.commoncapabilities.api.capability.recipehandler.RecipeHandlerHelpers

public class RecipeHandlerHelpers extends Object
  • 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)