Class WrappedRecipeManager

java.lang.Object
net.neoforged.neoforge.resource.ContextAwareReloadListener
net.minecraft.server.packs.resources.SimplePreparableReloadListener<Map<net.minecraft.resources.ResourceLocation,com.google.gson.JsonElement>>
net.minecraft.server.packs.resources.SimpleJsonResourceReloadListener
net.minecraft.world.item.crafting.RecipeManager
com.petrolpark.core.recipe.WrappedRecipeManager
All Implemented Interfaces:
net.minecraft.server.packs.resources.PreparableReloadListener
Direct Known Subclasses:
FilteredRecipeManager

@ParametersAreNonnullByDefault public class WrappedRecipeManager extends net.minecraft.world.item.crafting.RecipeManager
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.item.crafting.RecipeManager

    net.minecraft.world.item.crafting.RecipeManager.CachedCheck<I extends net.minecraft.world.item.crafting.RecipeInput,T extends net.minecraft.world.item.crafting.Recipe<I>>

    Nested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener

    net.minecraft.server.packs.resources.PreparableReloadListener.PreparationBarrier
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final net.minecraft.world.item.crafting.RecipeManager
     

    Fields inherited from class net.minecraft.world.item.crafting.RecipeManager

    registries
  • Constructor Summary

    Constructors
    Constructor
    Description
    WrappedRecipeManager(net.minecraft.world.item.crafting.RecipeManager wrapped)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    apply(Map<net.minecraft.resources.ResourceLocation,com.google.gson.JsonElement> object, net.minecraft.server.packs.resources.ResourceManager resourceManager, net.minecraft.util.profiling.ProfilerFiller profiler)
     
    Optional<net.minecraft.world.item.crafting.RecipeHolder<?>>
    byKey(net.minecraft.resources.ResourceLocation recipeId)
     
    <I extends net.minecraft.world.item.crafting.RecipeInput, T extends net.minecraft.world.item.crafting.Recipe<I>>
    Collection<net.minecraft.world.item.crafting.RecipeHolder<T>>
    byType(net.minecraft.world.item.crafting.RecipeType<T> type)
     
    <I extends net.minecraft.world.item.crafting.RecipeInput, T extends net.minecraft.world.item.crafting.Recipe<I>>
    List<net.minecraft.world.item.crafting.RecipeHolder<T>>
    getAllRecipesFor(net.minecraft.world.item.crafting.RecipeType<T> recipeType)
     
    Collection<net.minecraft.world.item.crafting.RecipeHolder<?>>
     
    <I extends net.minecraft.world.item.crafting.RecipeInput, T extends net.minecraft.world.item.crafting.Recipe<I>>
    Optional<net.minecraft.world.item.crafting.RecipeHolder<T>>
    getRecipeFor(net.minecraft.world.item.crafting.RecipeType<T> recipeType, I input, net.minecraft.world.level.Level level, net.minecraft.world.item.crafting.RecipeHolder<T> lastRecipe)
     
    Stream<net.minecraft.resources.ResourceLocation>
     
    Collection<net.minecraft.world.item.crafting.RecipeHolder<?>>
     
    <I extends net.minecraft.world.item.crafting.RecipeInput, T extends net.minecraft.world.item.crafting.Recipe<I>>
    List<net.minecraft.world.item.crafting.RecipeHolder<T>>
    getRecipesFor(net.minecraft.world.item.crafting.RecipeType<T> recipeType, I input, net.minecraft.world.level.Level level)
     
    <I extends net.minecraft.world.item.crafting.RecipeInput, T extends net.minecraft.world.item.crafting.Recipe<I>>
    net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack>
    getRemainingItemsFor(net.minecraft.world.item.crafting.RecipeType<T> recipeType, I input, net.minecraft.world.level.Level level)
     
    boolean
     
    void
    replaceRecipes(Iterable<net.minecraft.world.item.crafting.RecipeHolder<?>> recipes)
     

    Methods inherited from class net.minecraft.world.item.crafting.RecipeManager

    createCheck, fromJson, getRecipeFor, getRecipeFor

    Methods inherited from class net.minecraft.server.packs.resources.SimpleJsonResourceReloadListener

    getPreparedPath, prepare, scanDirectory

    Methods inherited from class net.minecraft.server.packs.resources.SimplePreparableReloadListener

    reload

    Methods inherited from class net.neoforged.neoforge.resource.ContextAwareReloadListener

    getContext, getRegistryLookup, injectContext, makeConditionalOps

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener

    getName
  • Field Details

    • wrapped

      protected final net.minecraft.world.item.crafting.RecipeManager wrapped
  • Constructor Details

    • WrappedRecipeManager

      public WrappedRecipeManager(net.minecraft.world.item.crafting.RecipeManager wrapped)
  • Method Details

    • apply

      protected void apply(@Nonnull Map<net.minecraft.resources.ResourceLocation,com.google.gson.JsonElement> object, @Nonnull net.minecraft.server.packs.resources.ResourceManager resourceManager, @Nonnull net.minecraft.util.profiling.ProfilerFiller profiler)
      Overrides:
      apply in class net.minecraft.world.item.crafting.RecipeManager
    • hadErrorsLoading

      public boolean hadErrorsLoading()
      Overrides:
      hadErrorsLoading in class net.minecraft.world.item.crafting.RecipeManager
    • getRecipeFor

      public <I extends net.minecraft.world.item.crafting.RecipeInput, T extends net.minecraft.world.item.crafting.Recipe<I>> Optional<net.minecraft.world.item.crafting.RecipeHolder<T>> getRecipeFor(net.minecraft.world.item.crafting.RecipeType<T> recipeType, I input, net.minecraft.world.level.Level level, @Nullable net.minecraft.world.item.crafting.RecipeHolder<T> lastRecipe)
      Overrides:
      getRecipeFor in class net.minecraft.world.item.crafting.RecipeManager
    • getAllRecipesFor

      public <I extends net.minecraft.world.item.crafting.RecipeInput, T extends net.minecraft.world.item.crafting.Recipe<I>> List<net.minecraft.world.item.crafting.RecipeHolder<T>> getAllRecipesFor(net.minecraft.world.item.crafting.RecipeType<T> recipeType)
      Overrides:
      getAllRecipesFor in class net.minecraft.world.item.crafting.RecipeManager
    • getRecipesFor

      public <I extends net.minecraft.world.item.crafting.RecipeInput, T extends net.minecraft.world.item.crafting.Recipe<I>> List<net.minecraft.world.item.crafting.RecipeHolder<T>> getRecipesFor(net.minecraft.world.item.crafting.RecipeType<T> recipeType, I input, net.minecraft.world.level.Level level)
      Overrides:
      getRecipesFor in class net.minecraft.world.item.crafting.RecipeManager
    • getRemainingItemsFor

      public <I extends net.minecraft.world.item.crafting.RecipeInput, T extends net.minecraft.world.item.crafting.Recipe<I>> net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> getRemainingItemsFor(net.minecraft.world.item.crafting.RecipeType<T> recipeType, I input, net.minecraft.world.level.Level level)
      Overrides:
      getRemainingItemsFor in class net.minecraft.world.item.crafting.RecipeManager
    • byKey

      public Optional<net.minecraft.world.item.crafting.RecipeHolder<?>> byKey(net.minecraft.resources.ResourceLocation recipeId)
      Overrides:
      byKey in class net.minecraft.world.item.crafting.RecipeManager
    • byType

      public <I extends net.minecraft.world.item.crafting.RecipeInput, T extends net.minecraft.world.item.crafting.Recipe<I>> Collection<net.minecraft.world.item.crafting.RecipeHolder<T>> byType(net.minecraft.world.item.crafting.RecipeType<T> type)
      Overrides:
      byType in class net.minecraft.world.item.crafting.RecipeManager
    • getOrderedRecipes

      public Collection<net.minecraft.world.item.crafting.RecipeHolder<?>> getOrderedRecipes()
      Overrides:
      getOrderedRecipes in class net.minecraft.world.item.crafting.RecipeManager
    • getRecipes

      public Collection<net.minecraft.world.item.crafting.RecipeHolder<?>> getRecipes()
      Overrides:
      getRecipes in class net.minecraft.world.item.crafting.RecipeManager
    • getRecipeIds

      public Stream<net.minecraft.resources.ResourceLocation> getRecipeIds()
      Overrides:
      getRecipeIds in class net.minecraft.world.item.crafting.RecipeManager
    • replaceRecipes

      public void replaceRecipes(Iterable<net.minecraft.world.item.crafting.RecipeHolder<?>> recipes)
      Overrides:
      replaceRecipes in class net.minecraft.world.item.crafting.RecipeManager