Package org.bukkit.event.block
Class CampfireStartEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
org.bukkit.event.block.InventoryBlockStartEvent
org.bukkit.event.block.CampfireStartEvent
Called when a Campfire starts to cook.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Field SummaryFields inherited from class org.bukkit.event.block.BlockEventblock
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic HandlerListGets the CampfireRecipe associated with this event.intGets the total cook time associated with this event.voidsetTotalCookTime(int cookTime) Sets the total cook time for this event.Methods inherited from class org.bukkit.event.block.InventoryBlockStartEventgetSourceMethods inherited from class org.bukkit.event.block.BlockEventgetBlockMethods inherited from class org.bukkit.event.EventgetEventName, isAsynchronous
- 
Constructor Details- 
CampfireStartEventpublic CampfireStartEvent(@NotNull Block furnace, @NotNull ItemStack source, @NotNull CampfireRecipe recipe) 
 
- 
- 
Method Details- 
getRecipeGets the CampfireRecipe associated with this event.- Returns:
- the CampfireRecipe being cooked
 
- 
getTotalCookTimepublic int getTotalCookTime()Gets the total cook time associated with this event.- Returns:
- the total cook time
 
- 
setTotalCookTimepublic void setTotalCookTime(int cookTime) Sets the total cook time for this event.- Parameters:
- cookTime- the new total cook time
 
- 
getHandlers- Overrides:
- getHandlersin class- InventoryBlockStartEvent
 
- 
getHandlerList
 
-