Package emi.dev.emi.emi.api.recipe
Class EmiWorldInteractionRecipe.Builder
java.lang.Object
emi.dev.emi.emi.api.recipe.EmiWorldInteractionRecipe.Builder
- Enclosing class:
- EmiWorldInteractionRecipe
-
Method Summary
Modifier and TypeMethodDescriptionbuild()id(ResourceLocation id) Assigns an identifier to the recipe.leftInput(EmiIngredient stack) Adds an ingredient to the left side of the plus.leftInput(EmiIngredient stack, Function<SlotWidget, SlotWidget> mutator) Adds an ingredient to the left side of the plus.Adds an output.output(EmiStack stack, Function<SlotWidget, SlotWidget> mutator) Adds an output.rightInput(EmiIngredient stack, boolean catalyst) Adds an ingredient to the right side of the plus.rightInput(EmiIngredient stack, boolean catalyst, Function<SlotWidget, SlotWidget> mutator) Adds an ingredient to the right side of the plus.supportsRecipeTree(boolean supportsRecipeTree)
-
Method Details
-
build
-
id
Assigns an identifier to the recipe. If not called, the id will be null. -
leftInput
Adds an ingredient to the left side of the plus. At least one is required. -
leftInput
public EmiWorldInteractionRecipe.Builder leftInput(EmiIngredient stack, Function<SlotWidget, SlotWidget> mutator) Adds an ingredient to the left side of the plus. At least one is required.- Parameters:
mutator- Provides a way to add attributes to the slot widget, or entirely replace it.
-
rightInput
Adds an ingredient to the right side of the plus. At least one is required.- Parameters:
catalyst- Whether to be not considered a cost in the recipe tree. Will also make the slot have a catalyst symbol.
-
rightInput
public EmiWorldInteractionRecipe.Builder rightInput(EmiIngredient stack, boolean catalyst, Function<SlotWidget, SlotWidget> mutator) Adds an ingredient to the right side of the plus. At least one is required.- Parameters:
catalyst- Whether to be not considered a cost in the recipe tree. Will also make the slot have a catalyst symbol.mutator- Provides a way to add attributes to the slot widget, or entirely replace it.
-
output
Adds an output. At least one is required. -
output
public EmiWorldInteractionRecipe.Builder output(EmiStack stack, Function<SlotWidget, SlotWidget> mutator) Adds an output. At least one is required.- Parameters:
mutator- Provides a way to add attributes to the slot widget, or entirely replace it.
-
supportsRecipeTree
-