Interface CraftingGridInventory
- All Superinterfaces:
- Inventory,- ValueContainer
A CraftingGridInventory represents the inventory of something that can craft
 items. This is excluding the Result slot.
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.spongepowered.api.item.inventory.InventoryInventory.Builder
- 
Method SummaryModifier and TypeMethodDescriptionasGrid()Returns this inventory as a grid.Returns this inventory as aRecipeInput.Crafting.recipe(ServerWorld world) Retrieves the recipe formed by this CraftingGridInventory, if any.Methods inherited from interface org.spongepowered.api.item.inventory.InventoryasViewable, canFit, capacity, children, clear, contains, contains, containsAny, containsChild, containsInventory, freeCapacity, get, get, hasChildren, intersect, offer, offer, parent, peek, peekAt, poll, poll, pollFrom, pollFrom, query, query, query, query, query, query, root, set, slot, slots, totalQuantity, union
- 
Method Details- 
recipeRetrieves the recipe formed by this CraftingGridInventory, if any.- Parameters:
- world- The world where the item would be crafted in
- Returns:
- The recipe or Optional.empty()if no recipe is formed
 
- 
asGridGridInventory asGrid()Returns this inventory as a grid.- Returns:
- the grid inventory
 
- 
asRecipeInputRecipeInput.Crafting asRecipeInput()Returns this inventory as aRecipeInput.Crafting.- Returns:
- the recipe input
 
 
-