Package org.bukkit.inventory
Interface SmithingInventory
Interface to the inventory of a Smithing table.
-
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable ItemStackGets the input equipment (second slot).default @Nullable ItemStackGets the input mineral (third slot).default @Nullable ItemStackGets the input template (first slot).@Nullable RecipeGet the current recipe formed on the smithing table, if any.@Nullable ItemStackCheck what item is in the result slot of this smithing table.default voidsetInputEquipment(@Nullable ItemStack itemStack) Sets the input equipment (second slot).default voidsetInputMineral(@Nullable ItemStack itemStack) Sets the input mineral (third slot).default voidsetInputTemplate(@Nullable ItemStack itemStack) Sets the input template (first slot).voidSet the item in the result slot of the smithing tableMethods inherited from interface org.bukkit.inventory.Inventory
addItem, 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.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
-
getInputTemplate
Gets the input template (first slot).- Returns:
- input template item
-
setInputTemplate
Sets the input template (first slot).- Parameters:
itemStack- item to set
-
getInputEquipment
Gets the input equipment (second slot).- Returns:
- input equipment item
-
setInputEquipment
Sets the input equipment (second slot).- Parameters:
itemStack- item to set
-
getInputMineral
Gets the input mineral (third slot).- Returns:
- input mineral item
-
setInputMineral
Sets the input mineral (third slot).- Parameters:
itemStack- item to set
-