Package org.bukkit.inventory.view
Interface FurnaceView
- All Superinterfaces:
- InventoryView
An instance of 
InventoryView which provides extra methods related to
 furnace view data.- 
Nested Class SummaryNested classes/interfaces inherited from interface org.bukkit.inventory.InventoryViewInventoryView.Property
- 
Field SummaryFields inherited from interface org.bukkit.inventory.InventoryViewOUTSIDE
- 
Method SummaryModifier and TypeMethodDescriptionfloatThe total burn time for this view.floatThe cook time for this view.Get the upper inventory involved in this transaction.booleanChecks whether or not the furnace is burningvoidsetBurnTime(int burnProgress, int burnDuration) Sets the burn timevoidsetCookTime(int cookProgress, int cookDuration) Sets the cook timeMethods inherited from interface org.bukkit.inventory.InventoryViewclose, convertSlot, countSlots, getBottomInventory, getCursor, getInventory, getItem, getOriginalTitle, getPlayer, getSlotType, getTitle, getType, setCursor, setItem, setProperty, setTitle
- 
Method Details- 
getTopInventoryDescription copied from interface:InventoryViewGet the upper inventory involved in this transaction.- Specified by:
- getTopInventoryin interface- InventoryView
- Returns:
- the inventory
 
- 
getCookTimefloat getCookTime()The cook time for this view.See Furnace.getCookTime()for more information.- Returns:
- a number between 0 and 1
 
- 
getBurnTimefloat getBurnTime()The total burn time for this view.See Furnace.getBurnTime()for more information.- Returns:
- a number between 0 and 1
 
- 
isBurningboolean isBurning()Checks whether or not the furnace is burning- Returns:
- true given that the furnace is burning
 
- 
setCookTimevoid setCookTime(int cookProgress, int cookDuration) Sets the cook timeSetting cook time requires manipulation of both cookProgress and cookDuration. This method does a simple division to get total progress within the furnaces visual duration bar. For a clear visual effect (cookProgress / cookDuration) should return a number between 0 and 1 inclusively. - Parameters:
- cookProgress- the current of the cooking
- cookDuration- the total cook time
 
- 
setBurnTimevoid setBurnTime(int burnProgress, int burnDuration) Sets the burn timeSetting burn time requires manipulation of both burnProgress and burnDuration. This method does a simple division to get total progress within the furnaces visual burning bar. For a clear visual effect (burnProgress / burnDuration) should return a number between 0 and 1 inclusively. - Parameters:
- burnProgress- the progress towards the burnDuration
- burnDuration- the total duration the view should be lit
 
 
-