public class FurnaceStartSmeltEvent extends BlockEvent
Event.Result
block
Constructor and Description |
---|
FurnaceStartSmeltEvent(Block furnace,
ItemStack source,
CookingRecipe<?> recipe) |
Modifier and Type | Method and Description |
---|---|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
CookingRecipe<?> |
getRecipe()
Gets the FurnaceRecipe associated with this event
|
ItemStack |
getSource()
Gets the source ItemStack for this event
|
int |
getTotalCookTime()
Gets the total cook time associated with this event
|
void |
setTotalCookTime(int cookTime)
Sets the total cook time for this event
|
getBlock
getEventName, isAsynchronous
public FurnaceStartSmeltEvent(@NotNull Block furnace, @NotNull ItemStack source, @NotNull CookingRecipe<?> recipe)
@NotNull public ItemStack getSource()
@NotNull public CookingRecipe<?> getRecipe()
public int getTotalCookTime()
public void setTotalCookTime(int cookTime)
cookTime
- the new total cook time@NotNull public HandlerList getHandlers()
getHandlers
in class Event
@NotNull public static HandlerList getHandlerList()
Copyright © 2022. All rights reserved.