Package com.petrolpark.core.recipe
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
-
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
FieldsModifier and TypeFieldDescriptionprotected 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
wrappedFields inherited from class net.minecraft.world.item.crafting.RecipeManager
registries -
Constructor Summary
ConstructorsConstructorDescriptionFilteredRecipeManager(net.minecraft.world.item.crafting.RecipeManager wrapped) -
Method Summary
Modifier and TypeMethodDescription<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, replaceRecipesMethods inherited from class net.minecraft.world.item.crafting.RecipeManager
createCheck, fromJson, getRecipeFor, getRecipeForMethods inherited from class net.minecraft.server.packs.resources.SimpleJsonResourceReloadListener
getPreparedPath, prepare, scanDirectoryMethods inherited from class net.minecraft.server.packs.resources.SimplePreparableReloadListener
reloadMethods inherited from class net.neoforged.neoforge.resource.ContextAwareReloadListener
getContext, getRegistryLookup, injectContext, makeConditionalOpsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-
-
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:
getRecipeForin classWrappedRecipeManager
-
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:
getAllRecipesForin classWrappedRecipeManager
-
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:
getRecipesForin classWrappedRecipeManager
-
getOrderedRecipes
- Overrides:
getOrderedRecipesin classWrappedRecipeManager
-
getRecipes
- Overrides:
getRecipesin classWrappedRecipeManager
-