Class FilteredRecipeManager

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
com.petrolpark.core.recipe.FilteredRecipeManager
All Implemented Interfaces:
net.minecraft.server.packs.resources.PreparableReloadListener

@ParametersAreNonnullByDefault public class FilteredRecipeManager extends WrappedRecipeManager
  • 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 com.google.common.collect.Multimap<net.minecraft.world.item.crafting.RecipeType<?>,net.minecraft.world.item.crafting.RecipeHolder<?>>
     
    Predicate<? super net.minecraft.world.item.crafting.RecipeHolder<?>>
     

    Fields inherited from class com.petrolpark.core.recipe.WrappedRecipeManager

    wrapped

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

    registries
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    <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)
     
    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)
     

    Methods inherited from class com.petrolpark.core.recipe.WrappedRecipeManager

    apply, byKey, byType, getRecipeIds, getRemainingItemsFor, hadErrorsLoading, replaceRecipes

    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

    • byType

      protected final com.google.common.collect.Multimap<net.minecraft.world.item.crafting.RecipeType<?>,net.minecraft.world.item.crafting.RecipeHolder<?>> byType
    • filter

      public Predicate<? super net.minecraft.world.item.crafting.RecipeHolder<?>> filter
  • Constructor Details

    • FilteredRecipeManager

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

    • 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 WrappedRecipeManager
    • 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 WrappedRecipeManager
    • 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 WrappedRecipeManager
    • getOrderedRecipes

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

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