Class CraftingHelpers

java.lang.Object
org.cyclops.cyclopscore.helper.CraftingHelpers

@Deprecated public class CraftingHelpers extends Object
Deprecated.
Several convenience functions for crafting.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Deprecated.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <C extends net.minecraft.world.item.crafting.RecipeInput, T extends net.minecraft.world.item.crafting.Recipe<C>>
    net.minecraft.world.item.crafting.RecipeHolder<T>
    findClientRecipe(net.minecraft.core.RegistryAccess registryAccess, net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.item.crafting.RecipeType<T> recipeType, int index)
    Deprecated.
     
    static <C extends net.minecraft.world.item.crafting.RecipeInput, T extends net.minecraft.world.item.crafting.Recipe<C>>
    Optional<net.minecraft.world.item.crafting.RecipeHolder<T>>
    findRecipeCached(net.minecraft.world.item.crafting.RecipeType<T> recipeType, C inventoryCrafting, net.minecraft.world.level.Level world, boolean uniqueInventory)
    Deprecated.
    A cache-based variant of RecipeManager.getRecipeFor(RecipeType, RecipeInput, Level).
    static <C extends net.minecraft.world.item.crafting.RecipeInput, T extends net.minecraft.world.item.crafting.Recipe<C>>
    List<net.minecraft.world.item.crafting.RecipeHolder<T>>
    findRecipes(net.minecraft.world.level.Level world, net.minecraft.world.item.crafting.RecipeType<? extends T> recipeType)
    Deprecated.
     
    static <C extends net.minecraft.world.item.crafting.RecipeInput, T extends net.minecraft.world.item.crafting.Recipe<C>>
    Optional<net.minecraft.world.item.crafting.RecipeHolder<T>>
    findServerRecipe(net.minecraft.world.item.crafting.RecipeType<T> recipeType, C container, net.minecraft.world.level.Level world)
    Deprecated.
     
    static <C extends net.minecraft.world.item.crafting.RecipeInput, T extends net.minecraft.world.item.crafting.Recipe<C>>
    List<net.minecraft.world.item.crafting.RecipeHolder<T>>
    findServerRecipes(net.minecraft.server.level.ServerLevel world, net.minecraft.world.item.crafting.RecipeType<? extends T> recipeType)
    Deprecated.
     
    static <C extends net.minecraft.world.item.crafting.RecipeInput, T extends net.minecraft.world.item.crafting.Recipe<C>>
    List<net.minecraft.world.item.crafting.RecipeHolder<T>>
    findServerRecipes(net.minecraft.world.item.crafting.RecipeType<? extends T> recipeType)
    Deprecated.
     
    static <C extends net.minecraft.world.item.crafting.RecipeInput, T extends net.minecraft.world.item.crafting.Recipe<C>>
    Optional<net.minecraft.world.item.crafting.RecipeHolder<T>>
    getClientRecipe(net.minecraft.world.item.crafting.RecipeType<T> recipeType, net.minecraft.resources.ResourceLocation recipeName)
    Deprecated.
     
    static <C extends net.minecraft.world.item.crafting.RecipeInput, T extends net.minecraft.world.item.crafting.Recipe<C>>
    List<net.minecraft.world.item.crafting.RecipeHolder<T>>
    getClientRecipes(net.minecraft.world.item.crafting.RecipeType<? extends T> recipeType)
    Deprecated.
     
    static net.minecraft.world.item.crafting.RecipeManager
    Deprecated.
     
    static <C extends net.minecraft.world.item.crafting.RecipeInput, T extends net.minecraft.world.item.crafting.Recipe<C>>
    Optional<net.minecraft.world.item.crafting.RecipeHolder<T>>
    getServerRecipe(net.minecraft.world.item.crafting.RecipeType<T> recipeType, net.minecraft.resources.ResourceLocation recipeName)
    Deprecated.
     
    static void
    Deprecated.
     
    static void
    onRecipesLoaded(net.neoforged.neoforge.client.event.RecipesUpdatedEvent event)
    Deprecated.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CraftingHelpers

      public CraftingHelpers()
      Deprecated.
  • Method Details

    • load

      public static void load()
      Deprecated.
    • onRecipesLoaded

      public static void onRecipesLoaded(net.neoforged.neoforge.client.event.RecipesUpdatedEvent event)
      Deprecated.
    • findRecipes

      public static <C extends net.minecraft.world.item.crafting.RecipeInput, T extends net.minecraft.world.item.crafting.Recipe<C>> List<net.minecraft.world.item.crafting.RecipeHolder<T>> findRecipes(net.minecraft.world.level.Level world, net.minecraft.world.item.crafting.RecipeType<? extends T> recipeType)
      Deprecated.
    • getRecipeManager

      public static net.minecraft.world.item.crafting.RecipeManager getRecipeManager()
      Deprecated.
    • getServerRecipe

      public static <C extends net.minecraft.world.item.crafting.RecipeInput, T extends net.minecraft.world.item.crafting.Recipe<C>> Optional<net.minecraft.world.item.crafting.RecipeHolder<T>> getServerRecipe(net.minecraft.world.item.crafting.RecipeType<T> recipeType, net.minecraft.resources.ResourceLocation recipeName)
      Deprecated.
    • findServerRecipe

      public static <C extends net.minecraft.world.item.crafting.RecipeInput, T extends net.minecraft.world.item.crafting.Recipe<C>> Optional<net.minecraft.world.item.crafting.RecipeHolder<T>> findServerRecipe(net.minecraft.world.item.crafting.RecipeType<T> recipeType, C container, net.minecraft.world.level.Level world)
      Deprecated.
    • findServerRecipes

      public static <C extends net.minecraft.world.item.crafting.RecipeInput, T extends net.minecraft.world.item.crafting.Recipe<C>> List<net.minecraft.world.item.crafting.RecipeHolder<T>> findServerRecipes(net.minecraft.world.item.crafting.RecipeType<? extends T> recipeType)
      Deprecated.
    • findServerRecipes

      public static <C extends net.minecraft.world.item.crafting.RecipeInput, T extends net.minecraft.world.item.crafting.Recipe<C>> List<net.minecraft.world.item.crafting.RecipeHolder<T>> findServerRecipes(net.minecraft.server.level.ServerLevel world, net.minecraft.world.item.crafting.RecipeType<? extends T> recipeType)
      Deprecated.
    • getClientRecipe

      public static <C extends net.minecraft.world.item.crafting.RecipeInput, T extends net.minecraft.world.item.crafting.Recipe<C>> Optional<net.minecraft.world.item.crafting.RecipeHolder<T>> getClientRecipe(net.minecraft.world.item.crafting.RecipeType<T> recipeType, net.minecraft.resources.ResourceLocation recipeName)
      Deprecated.
    • getClientRecipes

      public static <C extends net.minecraft.world.item.crafting.RecipeInput, T extends net.minecraft.world.item.crafting.Recipe<C>> List<net.minecraft.world.item.crafting.RecipeHolder<T>> getClientRecipes(net.minecraft.world.item.crafting.RecipeType<? extends T> recipeType)
      Deprecated.
    • findClientRecipe

      public static <C extends net.minecraft.world.item.crafting.RecipeInput, T extends net.minecraft.world.item.crafting.Recipe<C>> net.minecraft.world.item.crafting.RecipeHolder<T> findClientRecipe(net.minecraft.core.RegistryAccess registryAccess, net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.item.crafting.RecipeType<T> recipeType, int index) throws IllegalArgumentException
      Deprecated.
      Throws:
      IllegalArgumentException
    • findRecipeCached

      public static <C extends net.minecraft.world.item.crafting.RecipeInput, T extends net.minecraft.world.item.crafting.Recipe<C>> Optional<net.minecraft.world.item.crafting.RecipeHolder<T>> findRecipeCached(net.minecraft.world.item.crafting.RecipeType<T> recipeType, C inventoryCrafting, net.minecraft.world.level.Level world, boolean uniqueInventory)
      Deprecated.
      A cache-based variant of RecipeManager.getRecipeFor(RecipeType, RecipeInput, Level).
      Type Parameters:
      C - The inventory type.
      T - The recipe type.
      Parameters:
      recipeType - The recipe type.
      inventoryCrafting - The crafting inventory.
      world - The world.
      uniqueInventory - If inventoryCrafting is a unique instance that can be cached safely. Otherwise a deep copy will be taken.
      Returns:
      The optional recipe if one was found.