public interface CraftingRecipe extends Recipe
| Modifier and Type | Method and Description |
|---|---|
void |
consumeItems(CraftingGrid craftingGrid)
Consumes items for the crafting of a single item.
|
java.util.Optional<Item> |
getCraftingResult(CraftingGrid craftingGrid)
Calculates the crafting result for the given crafting grid.
|
java.util.Optional<Item> |
getExampleOutput()
Gets a nominal (example) output for this recipe.
|
default java.util.Collection<java.lang.String> |
getPossibleItemsInFirstSlot()
Gets the possible items for this recipe in the first non-empty recipe
slot.
|
boolean |
matches(CraftingGrid craftingGrid)
Checks if this crafting recipe matches the content of the given crafting
grid.
|
boolean matches(CraftingGrid craftingGrid)
craftingGrid - crafting grid to read fromjava.util.Optional<Item> getCraftingResult(CraftingGrid craftingGrid)
craftingGrid - crafting gridjava.util.Optional<Item> getExampleOutput()
void consumeItems(CraftingGrid craftingGrid)
craftingGrid - crafting grid to modifydefault java.util.Collection<java.lang.String> getPossibleItemsInFirstSlot()