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.InventoryBlockStartEventsourceFields inherited from class org.bukkit.event.block.BlockEventblock
- 
Constructor SummaryConstructorsConstructorDescriptionCampfireStartEvent(@NotNull Block furnace, @NotNull ItemStack source, @NotNull CampfireRecipe recipe) 
- 
Method SummaryModifier and TypeMethodDescriptionGets 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.InventoryBlockStartEventgetHandlerList, getHandlers, getSourceMethods inherited from class org.bukkit.event.block.BlockEventgetBlockMethods inherited from class org.bukkit.event.EventcallEvent, getEventName, isAsynchronous
- 
Constructor Details- 
CampfireStartEvent
 
- 
- 
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
 
 
-