Interface IRecipeOutputExtension
- All Known Subinterfaces:
RecipeOutput
- All Known Implementing Classes:
ConditionalRecipeOutput
public interface IRecipeOutputExtension
Extra methods for
RecipeOutput
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(ResourceLocation id, Recipe<?> recipe, @Nullable AdvancementHolder advancement, ICondition... conditions) Generates a recipe with the given conditions.private RecipeOutput
self()
default RecipeOutput
withConditions
(ICondition... conditions) Builds a wrapper around this recipe output that adds conditions to all received recipes.
-
Method Details
-
self
-
accept
void accept(ResourceLocation id, Recipe<?> recipe, @Nullable @Nullable AdvancementHolder advancement, ICondition... conditions) Generates a recipe with the given conditions. -
withConditions
Builds a wrapper around this recipe output that adds conditions to all received recipes.
-