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(Block furnace, ItemStack source, CookingRecipe<?> recipe)
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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
getEventName, isAsynchronous
-
Constructor Details
-
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
-