Interface RecipeInput.Factory
- Enclosing interface:
RecipeInput
public static interface RecipeInput.Factory
-
Method Summary
Modifier and TypeMethodDescriptioncrafting
(GridInventory grid) Creates a recipe input forCraftingRecipe
single
(ItemStackLike stack) Creates a recipe input forCookingRecipe
andStoneCutterRecipe
smithing
(ItemStackLike templateStack, ItemStackLike baseStack, ItemStackLike additionStack) Creates a recipe input forSmithingRecipe
-
Method Details
-
single
Creates a recipe input forCookingRecipe
andStoneCutterRecipe
- Parameters:
stack
- the single input stack- Returns:
- the recipe input
-
smithing
RecipeInput.Smithing smithing(ItemStackLike templateStack, ItemStackLike baseStack, ItemStackLike additionStack) Creates a recipe input forSmithingRecipe
- Parameters:
templateStack
- the template item to usebaseStack
- the base item to useadditionStack
- the additional item to use- Returns:
- the recipe input
-
crafting
Creates a recipe input forCraftingRecipe
- Parameters:
grid
- the grid inventory- Returns:
- the recipe input
-