Package org.bukkit.block
Interface Campfire
- All Superinterfaces:
- BlockState,- Metadatable,- PersistentDataHolder,- TileState
Represents a captured state of a campfire.
- 
Method SummaryModifier and TypeMethodDescriptionintgetCookTime(int index) Get cook time.intgetCookTimeTotal(int index) Get cook time total.getItem(int index) intgetSize()booleanisCookingDisabled(int index) State of slot index.voidsetCookTime(int index, int cookTime) Set cook time.voidsetCookTimeTotal(int index, int cookTimeTotal) Set cook time.voidvoidRe-enable cooking in all slots.booleanstartCooking(int index) Re-enable cooking in the specified slot index.voidDisable cooking in all slots.booleanstopCooking(int index) Disable cooking in the specified slot index.Methods inherited from interface org.bukkit.block.BlockStategetBlock, getBlockData, getChunk, getData, getDrops, getDrops, getDrops, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isCollidable, isPlaced, setBlockData, setData, setRawData, setType, update, update, updateMethods inherited from interface org.bukkit.metadata.MetadatablegetMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.block.TileStategetPersistentDataContainer, isSnapshot
- 
Method Details- 
getSizeint getSize()- Returns:
- The size of the inventory
- See Also:
 
- 
getItem- Parameters:
- index- The index of the Slot's ItemStack to return
- Returns:
- The ItemStack in the slot
- See Also:
 
- 
setItem- Parameters:
- index- The index where to put the ItemStack
- item- The ItemStack to set
- See Also:
 
- 
getCookTimeint getCookTime(int index) Get cook time. This is the amount of time the item has been cooking for.- Parameters:
- index- item slot index
- Returns:
- Cook time
 
- 
setCookTimevoid setCookTime(int index, int cookTime) Set cook time. This is the amount of time the item has been cooking for.- Parameters:
- index- item slot index
- cookTime- Cook time
 
- 
getCookTimeTotalint getCookTimeTotal(int index) Get cook time total. This is the amount of time the item is required to cook for.- Parameters:
- index- item slot index
- Returns:
- Cook time total
 
- 
setCookTimeTotalvoid setCookTimeTotal(int index, int cookTimeTotal) Set cook time. This is the amount of time the item is required to cook for.- Parameters:
- index- item slot index
- cookTimeTotal- Cook time total
 
- 
stopCookingvoid stopCooking()Disable cooking in all slots.
- 
startCookingvoid startCooking()Re-enable cooking in all slots.
- 
stopCookingboolean stopCooking(int index) Disable cooking in the specified slot index.- Parameters:
- index- item slot index
- Returns:
- whether the slot had cooking enabled before this call
 
- 
startCookingboolean startCooking(int index) Re-enable cooking in the specified slot index.- Parameters:
- index- item slot index
- Returns:
- whether the slot couldn't cook before this call
 
- 
isCookingDisabledboolean isCookingDisabled(int index) State of slot index.- Parameters:
- index- item slot index
- Returns:
- trueif the specified slot index cannot cook
 
 
-