Class NeoForgeRecipeProvider.InterceptingRecipeOutput
java.lang.Object
net.neoforged.neoforge.common.data.internal.NeoForgeRecipeProvider.InterceptingRecipeOutput
- All Implemented Interfaces:
BootstrapContext<Recipe<?>>, BootstrapContextAccess, BootstrapContextAccessExtension, BootstrapContextExtension<Recipe<?>>
- Enclosing class:
NeoForgeRecipeProvider
private static class NeoForgeRecipeProvider.InterceptingRecipeOutput
extends Object
implements BootstrapContext<Recipe<?>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Set<ResourceKey<Recipe<?>>> private final HolderGetter<Item> private final BootstrapContext<Recipe<?>> private final Map<Item, Ingredient> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateInterceptingRecipeOutput(BootstrapContext<Recipe<?>> output) -
Method Summary
Modifier and TypeMethodDescriptionprivate @Nullable Ingredientenhance(ResourceKey<Recipe<?>> name, Ingredient vanilla) enhance(ResourceKey<Recipe<?>> id, Recipe<?> vanilla) private @Nullable ShapedRecipeenhance(ResourceKey<Recipe<?>> id, ShapedRecipe vanilla) private @Nullable ShapelessRecipeenhance(ResourceKey<Recipe<?>> id, ShapelessRecipe vanilla) <S> Stream<Holder.Reference<S>> listContextElements(ResourceKey<? extends Registry<? extends S>> key) Deprecated.<S> HolderGetter<S> lookup(ResourceKey<? extends Registry<? extends S>> key) register(ResourceKey<Recipe<?>> id, Recipe<?> recipe) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BootstrapContextAccessExtension
holderLookupMethods inherited from interface BootstrapContextExtension
register
-
Field Details
-
items
-
output
-
replacements
-
specialReplacements
-
excludes
-
-
Constructor Details
-
InterceptingRecipeOutput
-
-
Method Details
-
register
- Specified by:
registerin interfaceBootstrapContext<Recipe<?>>
-
lookup
- Specified by:
lookupin interfaceBootstrapContextAccess
-
listContextElements
@Deprecated public <S> Stream<Holder.Reference<S>> listContextElements(ResourceKey<? extends Registry<? extends S>> key) Deprecated.- Specified by:
listContextElementsin interfaceBootstrapContextAccess
-
enhance
-
enhance
-
enhance
-
enhance
-