Package org.bukkit.inventory
Interface CraftingInventory
Interface to the crafting inventories
- 
Method SummaryModifier and TypeMethodDescriptionGet the contents of the crafting matrix.Get the current recipe formed on the crafting inventory, if any.Check what item is in the result slot of this crafting inventory.voidReplace the contents of the crafting matrixvoidSet the item in the result slot of the crafting inventory.Methods inherited from interface org.bukkit.inventory.InventoryaddItem, all, all, clear, clear, close, contains, contains, contains, contains, containsAtLeast, first, first, firstEmpty, getContents, getHolder, getHolder, getItem, getLocation, getMaxStackSize, getSize, getStorageContents, getType, getViewers, isEmpty, iterator, iterator, remove, remove, removeItem, removeItemAnySlot, setContents, setItem, setMaxStackSize, setStorageContentsMethods inherited from interface java.lang.IterableforEach, spliterator
- 
Method Details- 
getResultCheck what item is in the result slot of this crafting inventory.- Returns:
- The result item.
 
- 
getMatrixGet the contents of the crafting matrix.- Returns:
- The contents. Individual entries may be null.
 
- 
setResultSet the item in the result slot of the crafting inventory.- Parameters:
- newResult- The new result item.
 
- 
setMatrixReplace the contents of the crafting matrix- Parameters:
- contents- The new contents. Individual entries may be null.
- Throws:
- IllegalArgumentException- if the length of contents is greater than the size of the crafting matrix.
 
- 
getRecipeGet the current recipe formed on the crafting inventory, if any.- Returns:
- The recipe, or null if the current contents don't match any recipe.
 
 
-