Package org.bukkit.inventory
Interface FurnaceInventory
public interface FurnaceInventory extends Inventory
Interface to the inventory of a Furnace.
-
Method Summary
Modifier and Type Method Description ItemStack
getFuel()
Get the current fuel.Furnace
getHolder()
Gets the block or entity belonging to the open inventoryItemStack
getResult()
Get the current item in the result slot.ItemStack
getSmelting()
Get the item currently smelting.void
setFuel(ItemStack stack)
Set the current fuel.void
setResult(ItemStack stack)
Set the current item in the result slot.void
setSmelting(ItemStack stack)
Set the item currently smelting.Methods inherited from interface org.bukkit.inventory.Inventory
addItem, all, all, clear, clear, contains, contains, contains, contains, containsAtLeast, first, first, firstEmpty, getContents, getItem, getLocation, getMaxStackSize, getSize, getStorageContents, getType, getViewers, isEmpty, iterator, iterator, remove, remove, removeItem, setContents, setItem, setMaxStackSize, setStorageContents
-
Method Details
-
getResult
Get the current item in the result slot.- Returns:
- The item
-
getFuel
Get the current fuel.- Returns:
- The item
-
getSmelting
Get the item currently smelting.- Returns:
- The item
-
setFuel
Set the current fuel.- Parameters:
stack
- The item
-
setResult
Set the current item in the result slot.- Parameters:
stack
- The item
-
setSmelting
Set the item currently smelting.- Parameters:
stack
- The item
-
getHolder
Description copied from interface:Inventory
Gets the block or entity belonging to the open inventory
-