程序包 org.bukkit.event.block

# 类 CampfireStartEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
org.bukkit.event.block.InventoryBlockStartEvent
org.bukkit.event.block.CampfireStartEvent

public class CampfireStartEvent extends InventoryBlockStartEvent
Called when a Campfire starts to cook.

- ## 嵌套类概要

  ## 从类继承的嵌套类/接口 org.bukkit.event.Event

  `Event.Result`

- ## 字段概要

  ### 从类继承的字段 org.bukkit.event.block.BlockEvent

  `block`

- ## 构造器概要

  构造器
  构造器
  说明
  `CampfireStartEvent(@NotNull Block furnace, @NotNull ItemStack source, @NotNull CampfireRecipe recipe)`

- ## 方法概要

  修饰符和类型
  方法
  说明
  `static @NotNull HandlerList`
  `getHandlerList()`
  `@NotNull HandlerList`
  `getHandlers()`
  `@NotNull CampfireRecipe`
  `getRecipe()`
  Gets the CampfireRecipe associated with 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.

  ### 从类继承的方法 org.bukkit.event.block.InventoryBlockStartEvent

  `getSource`

  ### 从类继承的方法 org.bukkit.event.block.BlockEvent

  `getBlock`

  ### 从类继承的方法 org.bukkit.event.Event

  `getEventName, isAsynchronous`

  ### 从类继承的方法 java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 构造器详细资料

  - ### CampfireStartEvent

    public CampfireStartEvent(@NotNull @NotNull Block furnace, @NotNull @NotNull ItemStack source, @NotNull @NotNull CampfireRecipe recipe)

- ## 方法详细资料

  - ### getRecipe

    @NotNull public @NotNull CampfireRecipe getRecipe()
    Gets the CampfireRecipe associated with this event.
    返回:
      the CampfireRecipe being cooked

  - ### getTotalCookTime

    public int getTotalCookTime()
    Gets the total cook time associated with this event.
    返回:
      the total cook time

  - ### setTotalCookTime

    public void setTotalCookTime(int cookTime)
    Sets the total cook time for this event.
    参数:
      `cookTime` - the new total cook time

  - ### getHandlers

    @NotNull public @NotNull HandlerList getHandlers()
    覆盖:
      `getHandlers` 在类中 `InventoryBlockStartEvent`

  - ### getHandlerList

    @NotNull public static @NotNull HandlerList getHandlerList()