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 shortgetBurnTime()Get burn time.shortgetCookTime()Get cook time.FurnaceInventorygetInventory()Get the object's inventory.voidsetBurnTime(short burnTime)Set burn time.voidsetCookTime(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, updateMethods 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:InventoryHolderGet the object's inventory.- Specified by:
getInventoryin interfaceInventoryHolder- Returns:
- The inventory.
-