public interface CraftingInventory extends OrderedInventory
Inventory.Builder
Modifier and Type | Method and Description |
---|---|
CraftingGridInventory |
getCraftingGrid()
Gets the crafting matrix of this CraftingInventory.
|
default Optional<CraftingRecipe> |
getRecipe(World world)
Retrieves the recipe formed by this CraftingInventory, if any.
|
CraftingOutput |
getResult()
Gets the result slot of this CraftingInventory.
|
getSlot, peek, peek, poll, poll, set
builder, canFit, capacity, clear, contains, contains, containsAny, containsInventory, first, getArchetype, getInventoryProperty, getInventoryProperty, getMaxStackSize, getPlugin, getProperties, getProperties, getProperty, getProperty, hasChildren, intersect, next, offer, parent, peek, peek, poll, poll, query, query, query, query, query, query, query, queryAny, root, set, setMaxStackSize, size, slots, totalItems, transform, union
forEach, iterator, spliterator
CraftingGridInventory getCraftingGrid()
CraftingOutput getResult()
default Optional<CraftingRecipe> getRecipe(World world)
world
- The world where the item would be crafted inOptional.empty()
if no recipe is formed