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
Constructors -
Method Summary
Modifier 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.InventoryBlockStartEvent
getSourceMethods inherited from class org.bukkit.event.block.BlockEvent
getBlockMethods inherited from class org.bukkit.event.Event
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
-
getHandlers
- Overrides:
getHandlersin classInventoryBlockStartEvent
-
getHandlerList
-