Package com.petrolpark.core.recipe
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
FieldsModifier and TypeFieldDescriptionprotected final net.minecraft.world.item.crafting.RecipeManagerFields inherited from class net.minecraft.world.item.crafting.RecipeManager
registries -
Constructor Summary
ConstructorsConstructorDescriptionWrappedRecipeManager(net.minecraft.world.item.crafting.RecipeManager wrapped) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapply(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) booleanvoidreplaceRecipes(Iterable<net.minecraft.world.item.crafting.RecipeHolder<?>> recipes) Methods 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
-
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:
applyin classnet.minecraft.world.item.crafting.RecipeManager
-
hadErrorsLoading
public boolean hadErrorsLoading()- Overrides:
hadErrorsLoadingin classnet.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:
getRecipeForin classnet.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:
getAllRecipesForin classnet.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:
getRecipesForin classnet.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:
getRemainingItemsForin classnet.minecraft.world.item.crafting.RecipeManager
-
byKey
public Optional<net.minecraft.world.item.crafting.RecipeHolder<?>> byKey(net.minecraft.resources.ResourceLocation recipeId) - Overrides:
byKeyin classnet.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:
byTypein classnet.minecraft.world.item.crafting.RecipeManager
-
getOrderedRecipes
- Overrides:
getOrderedRecipesin classnet.minecraft.world.item.crafting.RecipeManager
-
getRecipes
- Overrides:
getRecipesin classnet.minecraft.world.item.crafting.RecipeManager
-
getRecipeIds
- Overrides:
getRecipeIdsin classnet.minecraft.world.item.crafting.RecipeManager
-
replaceRecipes
- Overrides:
replaceRecipesin classnet.minecraft.world.item.crafting.RecipeManager
-