Package org.bukkit.inventory
Interface SmithingInventory
Interface to the inventory of a Smithing table.
-
Method Summary
Methods inherited from interface org.bukkit.inventory.Inventory
addItem, all, all, clear, clear, contains, contains, contains, contains, containsAtLeast, first, first, firstEmpty, getContents, getHolder, getItem, getLocation, getMaxStackSize, getSize, getStorageContents, getType, getViewers, isEmpty, iterator, iterator, remove, remove, removeItem, setContents, setItem, setMaxStackSize, setStorageContents
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
getResult
Check what item is in the result slot of this smithing table.- Returns:
- the result item
-
setResult
Set the item in the result slot of the smithing table- Parameters:
newResult
- the new result item
-
getRecipe
Get the current recipe formed on the smithing table, if any.- Returns:
- the recipe, or null if the current contents don't match any recipe
-