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
ConstructorsConstructorDescriptionFurnaceStartSmeltEvent(@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 HandlerListGets the FurnaceRecipe associated with this eventGets the source ItemStack for this eventintGets the total cook time associated with this eventvoidsetTotalCookTime(int cookTime) Sets the total cook time for this eventMethods inherited from class org.bukkit.event.block.BlockEvent
getBlockMethods 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:
getHandlersin classEvent
-
getHandlerList
-