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 Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Field Summary
Fields inherited from class org.bukkit.event.block.BlockEvent
block
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerList
Gets the CampfireRecipe associated with this event.int
Gets the total cook time associated with this event.void
setTotalCookTime
(int cookTime) Sets the total cook time for this event.Methods inherited from class org.bukkit.event.block.InventoryBlockStartEvent
getSource
Methods inherited from class org.bukkit.event.block.BlockEvent
getBlock
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
CampfireStartEvent
public CampfireStartEvent(@NotNull Block furnace, @NotNull ItemStack source, @NotNull CampfireRecipe recipe)
-
-
Method Details
-
getRecipe
Gets the CampfireRecipe associated with this event.- Returns:
- the CampfireRecipe being cooked
-
getTotalCookTime
public int getTotalCookTime()Gets the total cook time associated with this event.- Returns:
- the total cook time
-
setTotalCookTime
public void setTotalCookTime(int cookTime) Sets the total cook time for this event.- Parameters:
cookTime
- the new total cook time
-
getHandlers
- Overrides:
getHandlers
in classInventoryBlockStartEvent
-
getHandlerList
-