Package org.bukkit.event.inventory
Class FurnaceStartSmeltEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
org.bukkit.event.inventory.FurnaceStartSmeltEvent
-
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 TypeMethodDescriptionstatic @NotNull HandlerList
Gets the FurnaceRecipe associated with this eventGets the source ItemStack for 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.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
-
getSource
Gets the source ItemStack for this event- Returns:
- the source ItemStack
-
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
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-