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
(@NotNull Block furnace, @NotNull ItemStack source, @NotNull CookingRecipe<?> recipe) Deprecated.FurnaceStartSmeltEvent
(@NotNull Block furnace, @NotNull ItemStack source, @NotNull CookingRecipe<?> recipe, int cookingTime) -
Method Summary
Modifier and TypeMethodDescriptionGets 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
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
-
FurnaceStartSmeltEvent
@Deprecated public FurnaceStartSmeltEvent(@NotNull @NotNull Block furnace, @NotNull @NotNull ItemStack source, @NotNull @NotNull CookingRecipe<?> recipe) Deprecated. -
FurnaceStartSmeltEvent
-
-
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
-