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 Event
Event.Result -
Field Summary
Fields inherited from class InventoryBlockStartEvent
sourceFields inherited from class BlockEvent
block -
Constructor Summary
ConstructorsConstructorDescriptionCampfireStartEvent(@NotNull Block campfire, @NotNull ItemStack source, @NotNull CampfireRecipe recipe) -
Method Summary
Modifier 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 InventoryBlockStartEvent
getHandlerList, getHandlers, getSourceMethods inherited from class BlockEvent
getBlockMethods inherited from class 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
-