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.InventoryBlockStartEvent
source
Fields inherited from class org.bukkit.event.block.BlockEvent
block
-
Constructor Summary
ConstructorDescriptionCampfireStartEvent
(@NotNull Block furnace, @NotNull ItemStack source, @NotNull CampfireRecipe recipe) -
Method Summary
Modifier and TypeMethodDescriptionGets 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
getHandlerList, getHandlers, getSource
Methods inherited from class org.bukkit.event.block.BlockEvent
getBlock
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
CampfireStartEvent
-
-
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
-