Package org.bukkit.block
Interface Furnace
- All Superinterfaces:
BlockState
,ContainerBlock
,InventoryHolder
,Metadatable
public interface Furnace extends BlockState, ContainerBlock
Represents a furnace.
-
Method Summary
Modifier and Type Method Description short
getBurnTime()
Get burn time.short
getCookTime()
Get cook time.FurnaceInventory
getInventory()
Get the object's inventory.void
setBurnTime(short burnTime)
Set burn time.void
setCookTime(short cookTime)
Set cook time.Methods inherited from interface org.bukkit.block.BlockState
getBlock, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getTypeId, getWorld, getX, getY, getZ, isPlaced, setData, setRawData, setType, setTypeId, update, update, update
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
-
Method Details
-
getBurnTime
short getBurnTime()Get burn time.- Returns:
- Burn time
-
setBurnTime
void setBurnTime(short burnTime)Set burn time.- Parameters:
burnTime
- Burn time
-
getCookTime
short getCookTime()Get cook time.- Returns:
- Cook time
-
setCookTime
void setCookTime(short cookTime)Set cook time.- Parameters:
cookTime
- Cook time
-
getInventory
FurnaceInventory getInventory()Description copied from interface:InventoryHolder
Get the object's inventory.- Specified by:
getInventory
in interfaceInventoryHolder
- Returns:
- The inventory.
-