Package org.bukkit.event.inventory
Class FurnaceStartSmeltEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
org.bukkit.event.block.InventoryBlockStartEvent
org.bukkit.event.inventory.FurnaceStartSmeltEvent
Called when a Furnace starts smelting.
-
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
ConstructorDescriptionFurnaceStartSmeltEvent
(Block furnace, ItemStack source, CookingRecipe<?> recipe) -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerList
Gets the FurnaceRecipe associated with this eventint
Gets the total cook time associated with this eventvoid
setTotalCookTime
(int cookTime) Sets the total cook time for this eventMethods 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
-
FurnaceStartSmeltEvent
public FurnaceStartSmeltEvent(@NotNull Block furnace, @NotNull ItemStack source, @NotNull CookingRecipe<?> recipe)
-
-
Method Details
-
getRecipe
Gets the FurnaceRecipe associated with this event- Returns:
- the FurnaceRecipe 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
-