Package org.bukkit.inventory
Interface CraftingInventory
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description ItemStack[]getMatrix()Get the contents of the crafting matrix.RecipegetRecipe()Get the current recipe formed on the crafting inventory, if any.ItemStackgetResult()Check what item is in the result slot of this crafting inventory.voidsetMatrix(ItemStack[] contents)Replace the contents of the crafting matrixvoidsetResult(ItemStack newResult)Set the item in the result slot of the crafting inventory.- 
Methods inherited from interface org.bukkit.inventory.InventoryaddItem, all, all, clear, clear, contains, contains, contains, contains, containsAtLeast, first, first, firstEmpty, getContents, getHolder, getItem, getLocation, getMaxStackSize, getSize, getStorageContents, getType, getViewers, iterator, iterator, remove, remove, removeItem, setContents, setItem, setMaxStackSize, setStorageContents
 - 
Methods inherited from interface java.lang.IterableforEach, spliterator
 
- 
 
- 
- 
- 
Method Detail- 
getResult@Nullable ItemStack getResult() Check what item is in the result slot of this crafting inventory.- Returns:
- The result item.
 
 - 
getMatrix@NotNull ItemStack[] getMatrix() Get the contents of the crafting matrix.- Returns:
- The contents. Individual entries may be null.
 
 - 
setResultvoid setResult(@Nullable ItemStack newResult)Set the item in the result slot of the crafting inventory.- Parameters:
- newResult- The new result item.
 
 - 
setMatrixvoid setMatrix(@NotNull ItemStack[] contents)Replace 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.
 
 - 
getRecipe@Nullable Recipe getRecipe() Get the current recipe formed on the crafting inventory, if any.- Returns:
- The recipe, or null if the current contents don't match any recipe.
 
 
- 
 
-