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 any of the furnace-like blocks start smelting.
Furnace-like blocks are Furnace,
Smoker, and BlastFurnace.
-
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
ConstructorsConstructorDescriptionFurnaceStartSmeltEvent(@NotNull Block furnace, @NotNull ItemStack source, @NotNull CookingRecipe<?> recipe) Deprecated, for removal: This API element is subject to removal in a future version.FurnaceStartSmeltEvent(@NotNull Block furnace, @NotNull ItemStack source, @NotNull CookingRecipe<?> recipe, int cookingTime) -
Method Summary
Modifier and TypeMethodDescriptionGets the FurnaceRecipe associated with this eventintGets the total cook time associated with this eventvoidsetTotalCookTime(int cookTime) Sets the total cook time for this eventMethods inherited from class InventoryBlockStartEvent
getHandlerList, getHandlers, getSourceMethods inherited from class BlockEvent
getBlockMethods inherited from class Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
FurnaceStartSmeltEvent
@Internal @Deprecated(forRemoval=true) public FurnaceStartSmeltEvent(@NotNull @NotNull Block furnace, @NotNull @NotNull ItemStack source, @NotNull @NotNull CookingRecipe<?> recipe) Deprecated, for removal: This API element is subject to removal in a future version. -
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
-