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 ItemStackgetFuel()Get the current fuel.FurnacegetHolder()Gets the block or entity belonging to the open inventoryItemStackgetResult()Get the current item in the result slot.ItemStackgetSmelting()Get the item currently smelting.voidsetFuel(ItemStack stack)Set the current fuel.voidsetResult(ItemStack stack)Set the current item in the result slot.voidsetSmelting(ItemStack stack)Set the item currently smelting.Methods inherited from interface org.bukkit.inventory.Inventory
addItem, all, all, all, clear, clear, contains, contains, contains, contains, contains, contains, containsAtLeast, first, first, first, firstEmpty, getContents, getItem, getMaxStackSize, getName, getSize, getTitle, getType, getViewers, iterator, iterator, remove, remove, remove, removeItem, setContents, setItem, setMaxStackSize
-
Method Details
-
getResult
ItemStack getResult()Get the current item in the result slot.- Returns:
- The item
-
getFuel
ItemStack getFuel()Get the current fuel.- Returns:
- The item
-
getSmelting
ItemStack 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
Furnace getHolder()Description copied from interface:InventoryGets the block or entity belonging to the open inventory
-