Class ConditionalRecipeOutput
java.lang.Object
net.neoforged.neoforge.common.crafting.ConditionalRecipeOutput
- All Implemented Interfaces:
RecipeOutput, BootstrapContextAccess, BootstrapContextAccessExtension, IRecipeOutputExtension
@Deprecated(forRemoval=true,
since="26.3")
@Internal
public class ConditionalRecipeOutput
extends Object
implements RecipeOutput
Deprecated, for removal: This API element is subject to removal in a future version.
Wrapper around a
RecipeOutput that adds conditions to all received recipes.
Do not use directly, obtain via IRecipeOutputExtension.withConditions(ICondition...).-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ICondition[]Deprecated, for removal: This API element is subject to removal in a future version.private final RecipeOutputDeprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorsConstructorDescriptionConditionalRecipeOutput(RecipeOutput inner, ICondition[] conditions) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ResourceKey<Recipe<?>> id, Recipe<?> recipe, @Nullable AdvancementHolder advancement, ICondition... conditions) Deprecated, for removal: This API element is subject to removal in a future version.Generates a recipe with the given conditions.Deprecated, for removal: This API element is subject to removal in a future version.<S> Stream<Holder.Reference<S>> listContextElements(ResourceKey<? extends Registry<? extends S>> key) Deprecated.<S> HolderGetter<S> lookup(ResourceKey<? extends Registry<? extends S>> key) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BootstrapContextAccessExtension
holderLookupMethods inherited from interface IRecipeOutputExtension
withConditions, withContextMethods inherited from interface RecipeOutput
accept
-
Field Details
-
inner
Deprecated, for removal: This API element is subject to removal in a future version. -
conditions
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
ConditionalRecipeOutput
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
advancement
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
advancementin interfaceRecipeOutput
-
accept
public void accept(ResourceKey<Recipe<?>> id, Recipe<?> recipe, @Nullable AdvancementHolder advancement, ICondition... conditions) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IRecipeOutputExtensionGenerates a recipe with the given conditions.- Specified by:
acceptin interfaceIRecipeOutputExtension
-
lookup
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
lookupin interfaceBootstrapContextAccess
-
listContextElements
@Deprecated public <S> Stream<Holder.Reference<S>> listContextElements(ResourceKey<? extends Registry<? extends S>> key) Deprecated.- Specified by:
listContextElementsin interfaceBootstrapContextAccess
-
IRecipeOutputExtension.withConditions(ICondition...)orIRecipeOutputExtension.withContext(UnaryOperator)instead.