public class BasicSmeltingRecipe extends java.lang.Object implements SmeltingRecipe
| Constructor and Description |
|---|
BasicSmeltingRecipe(ItemFactory output,
ItemIngredient ingredient)
Defines a basic structured crafting recipe, using a format string.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<Item> |
getCraftingResult(Item input)
Calculates the crafting result for the given crafting grid.
|
java.util.Optional<Item> |
getExampleOutput()
Gets an example output for this recipe.
|
java.util.Optional<ItemIngredient> |
getInput()
Gets the input for this recipe.
|
boolean |
matches(Item input)
Checks if this crafting recipe matches the content of the given smelting input.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetExampleInputpublic BasicSmeltingRecipe(ItemFactory output, ItemIngredient ingredient)
output - Output Item of the recipeingredient - ItemIngredientpublic boolean matches(Item input)
SmeltingRecipematches in interface SmeltingRecipeinput - smelting input to read frompublic java.util.Optional<Item> getCraftingResult(Item input)
SmeltingRecipegetCraftingResult in interface SmeltingRecipeinput - crafting gridpublic java.util.Optional<Item> getExampleOutput()
SmeltingRecipegetExampleOutput in interface SmeltingRecipepublic java.util.Optional<ItemIngredient> getInput()
SmeltingRecipegetInput in interface SmeltingRecipe