Class FurnaceStartSmeltEvent


public class FurnaceStartSmeltEvent extends InventoryBlockStartEvent
Called when any of the furnace-like blocks start smelting.

Furnace-like blocks are Furnace, Smoker, and BlastFurnace.

  • 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

      @Internal public FurnaceStartSmeltEvent(@NotNull @NotNull Block furnace, @NotNull @NotNull ItemStack source, @NotNull @NotNull CookingRecipe<?> recipe, int cookingTime)
  • Method Details

    • getRecipe

      @NotNull public @NotNull CookingRecipe<?> 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