Package org.bukkit.inventory
Interface FurnaceInventory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable ItemStack
getFuel()
Get the current fuel.@Nullable Furnace
getHolder()
Gets the block or entity belonging to the open inventory@Nullable ItemStack
getResult()
Get the current item in the result slot.@Nullable ItemStack
getSmelting()
Get the item currently smelting.void
setFuel(@Nullable ItemStack stack)
Set the current fuel.void
setResult(@Nullable ItemStack stack)
Set the current item in the result slot.void
setSmelting(@Nullable 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, iterator, iterator, remove, remove, removeItem, setContents, setItem, setMaxStackSize, setStorageContents
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
getResult
@Nullable @Nullable ItemStack getResult()
Get the current item in the result slot.- Returns:
- The item
-
getFuel
@Nullable @Nullable ItemStack getFuel()
Get the current fuel.- Returns:
- The item
-
getSmelting
@Nullable @Nullable ItemStack getSmelting()
Get the item currently smelting.- Returns:
- The item
-
setFuel
void setFuel(@Nullable @Nullable ItemStack stack)
Set the current fuel.- Parameters:
stack
- The item
-
setResult
void setResult(@Nullable @Nullable ItemStack stack)
Set the current item in the result slot.- Parameters:
stack
- The item
-
setSmelting
void setSmelting(@Nullable @Nullable ItemStack stack)
Set the item currently smelting.- Parameters:
stack
- The item
-
-