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 RecipeOutput
private final Map
<Item, Ingredient> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
InterceptingRecipeOutput
(HolderGetter<Item> items, RecipeOutput output) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(ResourceKey<Recipe<?>> id, Recipe<?> recipe, @Nullable AdvancementHolder advancement, ICondition... conditions) Generates a recipe with the given conditions.private @Nullable Ingredient
enhance
(ResourceKey<Recipe<?>> name, Ingredient vanilla) private @Nullable Recipe
<?> enhance
(ResourceKey<Recipe<?>> id, Recipe<?> vanilla) private @Nullable ShapedRecipe
enhance
(ResourceKey<Recipe<?>> id, ShapedRecipe vanilla) private @Nullable ShapelessRecipe
enhance
(ResourceKey<Recipe<?>> id, ShapelessRecipe vanilla) void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.neoforged.neoforge.common.extensions.IRecipeOutputExtension
withConditions
Methods inherited from interface net.minecraft.data.recipes.RecipeOutput
accept
-
Field Details
-
items
-
output
-
replacements
-
specialReplacements
-
excludes
-
-
Constructor Details
-
InterceptingRecipeOutput
-
-
Method Details
-
advancement
- Specified by:
advancement
in interfaceRecipeOutput
-
includeRootAdvancement
public void includeRootAdvancement()- Specified by:
includeRootAdvancement
in interfaceRecipeOutput
-
accept
public void accept(ResourceKey<Recipe<?>> id, Recipe<?> recipe, @Nullable @Nullable AdvancementHolder advancement, ICondition... conditions) Description copied from interface:IRecipeOutputExtension
Generates a recipe with the given conditions.- Specified by:
accept
in interfaceIRecipeOutputExtension
-
enhance
-
enhance
@Nullable private @Nullable ShapelessRecipe enhance(ResourceKey<Recipe<?>> id, ShapelessRecipe vanilla) -
enhance
-
enhance
-