类 FurnaceStartSmeltEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
org.bukkit.event.block.InventoryBlockStartEvent
org.bukkit.event.inventory.FurnaceStartSmeltEvent
当熔炉开始熔炼时调用。
-
嵌套类概要
从类继承的嵌套类/接口 org.bukkit.event.Event
Event.Result -
字段概要
从类继承的字段 org.bukkit.event.block.BlockEvent
block -
构造器概要
构造器构造器说明FurnaceStartSmeltEvent(@NotNull Block furnace, @NotNull ItemStack source, @NotNull CookingRecipe<?> recipe) -
方法概要
修饰符和类型方法说明static @NotNull HandlerList获取与此事件关联的熔炉配方。int获取与此事件关联的总烹饪时间。voidsetTotalCookTime(int cookTime) 设置此事件的总烹饪时间。从类继承的方法 org.bukkit.event.block.InventoryBlockStartEvent
getSource从类继承的方法 org.bukkit.event.block.BlockEvent
getBlock从类继承的方法 org.bukkit.event.Event
getEventName, isAsynchronous
-
构造器详细资料
-
FurnaceStartSmeltEvent
-
-
方法详细资料
-
getRecipe
获取与此事件关联的熔炉配方。- 返回:
- 正在烹饪的熔炉配方
原文:Gets the FurnaceRecipe associated with this event
-
getTotalCookTime
public int getTotalCookTime()获取与此事件关联的总烹饪时间。- 返回:
- 总烹饪时间
原文:Gets the total cook time associated with this event
-
setTotalCookTime
public void setTotalCookTime(int cookTime) 设置此事件的总烹饪时间。- 参数:
cookTime- 新的总烹饪时间原文:Sets the total cook time for this event
-
getHandlers
- 覆盖:
getHandlers在类中InventoryBlockStartEvent
-
getHandlerList
-