Class NeoForgeRecipeProvider.InterceptingRecipeOutput
java.lang.Object
net.neoforged.neoforge.common.data.internal.NeoForgeRecipeProvider.InterceptingRecipeOutput
- All Implemented Interfaces:
RecipeOutput,IRecipeOutputExtension
- Enclosing class:
NeoForgeRecipeProvider
private static class NeoForgeRecipeProvider.InterceptingRecipeOutput
extends Object
implements RecipeOutput
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Set<ResourceKey<Recipe<?>>> private final HolderGetter<Item> private final RecipeOutputprivate final Map<Item, Ingredient> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateInterceptingRecipeOutput(HolderGetter<Item> items, RecipeOutput output) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ResourceKey<Recipe<?>> id, Recipe<?> recipe, @Nullable AdvancementHolder advancement, ICondition... conditions) Generates a recipe with the given conditions.private @Nullable Ingredientenhance(ResourceKey<Recipe<?>> name, Ingredient vanilla) private @Nullable Recipe<?> enhance(ResourceKey<Recipe<?>> id, Recipe<?> vanilla) private @Nullable ShapedRecipeenhance(ResourceKey<Recipe<?>> id, ShapedRecipe vanilla) private @Nullable ShapelessRecipeenhance(ResourceKey<Recipe<?>> id, ShapelessRecipe vanilla) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.common.extensions.IRecipeOutputExtension
withConditionsMethods inherited from interface net.minecraft.data.recipes.RecipeOutput
accept
-
Field Details
-
items
-
output
-
replacements
-
specialReplacements
-
excludes
-
-
Constructor Details
-
InterceptingRecipeOutput
-
-
Method Details
-
advancement
- Specified by:
advancementin interfaceRecipeOutput
-
includeRootAdvancement
public void includeRootAdvancement()- Specified by:
includeRootAdvancementin interfaceRecipeOutput
-
accept
public void accept(ResourceKey<Recipe<?>> id, Recipe<?> recipe, @Nullable @Nullable AdvancementHolder advancement, ICondition... conditions) Description copied from interface:IRecipeOutputExtensionGenerates a recipe with the given conditions.- Specified by:
acceptin interfaceIRecipeOutputExtension
-
enhance
-
enhance
@Nullable private @Nullable ShapelessRecipe enhance(ResourceKey<Recipe<?>> id, ShapelessRecipe vanilla) -
enhance
-
enhance
-