FurnaceBurnEvent
FurnaceBurnEvent
=> org.bukkit.event.Event
=> org.bukkit.event.block.BlockEvent
=> org.bukkit.event.inventory.FurnaceBurnEvent
Called when an ItemStack is successfully burned as fuel in a furnace.当熔炉消耗燃料物品堆时触发。
方法声明: public ItemStack getFuel()
方法签名: ()Lorg/bukkit/inventory/ItemStack;
Gets the fuel ItemStack for this event@return the fuel ItemStack该方法用于获取涉事燃料物品堆。@return 涉事燃料物品堆。
方法声明: public int getBurnTime()
方法签名: ()I
Gets the burn time for this fuel@return the burn time for this fuel该方法用于获取涉事燃料物品堆可以维持燃烧的时间。@return 涉事燃料物品堆可以维持燃烧的时间。
方法声明: public void setBurnTime(int burnTime)
方法签名: (I)V
Sets the burn time for this fuel@param burnTime the burn time for this fuel该方法用于设置涉事燃料物品堆可以维持燃烧的时间。@param burnTime 涉事燃料物品堆可以维持燃烧的时间。
方法声明: public boolean isBurning()
方法签名: ()Z
Gets whether the furnace's fuel is burning or not.@return whether the furnace's fuel is burning or not.该方法用于获取熔炉是否会消耗燃料以保持燃烧。@return 熔炉是否会消耗燃料以保持燃烧。
方法声明: public void setBurning(boolean burning)
方法签名: (Z)V
Sets whether the furnace's fuel is burning or not.@param burning true if the furnace's fuel is burning该方法用于获取熔炉是否会消耗燃料以保持燃烧。@param burning 如传入true
,则熔炉会消耗燃料以保持燃烧。
方法声明: public boolean isCancelled()
方法签名: ()Z
方法声明: public void setCancelled(boolean cancel)
方法签名: (Z)V
方法声明: public HandlerList getHandlers()
方法签名: ()Lorg/bukkit/event/HandlerList;
方法声明: public static HandlerList getHandlerList()
方法签名: ()Lorg/bukkit/event/HandlerList;
Last modified 1mo ago