Class RecipeContextBuilder
java.lang.Object
net.neoforged.neoforge.common.data.RecipeContextBuilder
A builder for constructing the new context the recipe output should use.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) RecipeOutputWrapper.Contextbuild(ICondition[] parentConditions) Sets the mod id that should be used as the namespace for generating recipes viaRecipeBuilder.save(RecipeOutput)orRecipeBuilder.save(RecipeOutput, String).withConditions(ICondition... conditions) Sets the conditions to apply to all received recipes.
-
Field Details
-
modId
-
conditions
-
-
Constructor Details
-
RecipeContextBuilder
-
-
Method Details
-
forMod
Sets the mod id that should be used as the namespace for generating recipes viaRecipeBuilder.save(RecipeOutput)orRecipeBuilder.save(RecipeOutput, String). This is provided as a helper for existingRecipeProvidermethods that do not provide some way to set the recipe namespace.- Parameters:
modId- The mod id to use.- Returns:
- This builder.
-
withConditions
Sets the conditions to apply to all received recipes.- Parameters:
conditions- The conditions to apply to the recipe output.- Returns:
- This builder.
-
build
-