Class ConditionalRecipeOutput
java.lang.Object
net.neoforged.neoforge.common.crafting.ConditionalRecipeOutput
- All Implemented Interfaces:
RecipeOutput
,IRecipeOutputExtension
Wrapper around a
RecipeOutput
that adds conditions to all received recipes.
Do not use directly, obtain via IRecipeOutputExtension.withConditions(ICondition...)
.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(ResourceLocation id, Recipe<?> recipe, @Nullable AdvancementHolder advancement, ICondition... conditions) Generates a recipe with the given conditions.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
-
inner
-
conditions
-
-
Constructor Details
-
ConditionalRecipeOutput
-
-
Method Details
-
advancement
- Specified by:
advancement
in interfaceRecipeOutput
-
accept
public void accept(ResourceLocation 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
-