Package org.bukkit.inventory
Interface SmithingInventory
Interface to the inventory of a Smithing table.
- API Note:
- Check Inventory.getType()to better handle either the current or experimental variant of this inventory
- 
Method SummaryModifier and TypeMethodDescriptionGets the input equipment (first slot).Gets the input mineral (second slot).Get the current recipe formed on the smithing table, if any.Check what item is in the result slot of this smithing table.default voidsetInputEquipment(@Nullable ItemStack itemStack) Sets the input equipment (first slot).default voidsetInputMineral(@Nullable ItemStack itemStack) Sets the input mineral (second slot).voidSet the item in the result slot of the smithing tableMethods 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 smithing table.- Returns:
- the result item
 
- 
setResultSet the item in the result slot of the smithing table- Parameters:
- newResult- the new result item
 
- 
getRecipeGet the current recipe formed on the smithing table, if any.- Returns:
- the recipe, or null if the current contents don't match any recipe
 
- 
getInputEquipmentGets the input equipment (first slot).- Returns:
- input equipment item
 
- 
setInputEquipmentSets the input equipment (first slot).- Parameters:
- itemStack- item to set
 
- 
getInputMineralGets the input mineral (second slot).- Returns:
- input mineral item
 
- 
setInputMineralSets the input mineral (second slot).- Parameters:
- itemStack- item to set
 
 
-