接口 FurnaceView
- 所有超级接口:
InventoryView
InventoryView 实例。-
嵌套类概要
从接口继承的嵌套类/接口 org.bukkit.inventory.InventoryView
InventoryView.Property -
字段概要
从接口继承的字段 org.bukkit.inventory.InventoryView
OUTSIDE -
方法概要
修饰符和类型方法说明float此视图的总燃烧时间。float此视图的烹饪时间。获取此窗口视图上方的物品栏.boolean检查熔炉是否正在燃烧。voidsetBurnTime(int burnProgress, int burnDuration) 设置燃烧时间。voidsetCookTime(int cookProgress, int cookDuration) 设置烹饪时间。从接口继承的方法 org.bukkit.inventory.InventoryView
close, convertSlot, countSlots, getBottomInventory, getCursor, getInventory, getItem, getOriginalTitle, getPlayer, getSlotType, getTitle, getType, setCursor, setItem, setProperty, setTitle
-
方法详细资料
-
getTopInventory
从接口复制的说明:InventoryView获取此窗口视图上方的物品栏.原文:Get the upper inventory involved in this transaction.
- 指定者:
getTopInventory在接口中InventoryView- 返回:
- 物品栏
-
getCookTime
float getCookTime()此视图的烹饪时间。- 返回:
- 一个0到1之间的数字
原文:The cook time for this view.
See
Furnace.getCookTime()for more information.
-
getBurnTime
float getBurnTime()此视图的总燃烧时间。- 返回:
- 一个0到1之间的数字
原文:The total burn time for this view.
See
Furnace.getBurnTime()for more information.
-
isBurning
boolean isBurning()检查熔炉是否正在燃烧。- 返回:
- 如果熔炉正在燃烧则返回true
原文:Checks whether or not the furnace is burning
-
setCookTime
void setCookTime(int cookProgress, int cookDuration) 设置烹饪时间。设置烹饪时间需要同时操作烹饪进度和烹饪时长。此方法通过简单除法获取熔炉视觉进度条内的总进度。 为获得清晰的视觉效果,(烹饪进度 / 烹饪时长) 应返回一个0到1之间的数字(包含0和1)。
- 参数:
cookProgress- 当前的烹饪进度cookDuration- 总烹饪时间原文:Sets the cook time
Setting cook time requires manipulation of both cookProgress and cookDuration. This method does a simple division to get total progress within the furnaces visual duration bar. For a clear visual effect (cookProgress / cookDuration) should return a number between 0 and 1 inclusively.
cookProgress- the current of the cookingcookDuration- the total cook time
-
setBurnTime
void setBurnTime(int burnProgress, int burnDuration) 设置燃烧时间。设置燃烧时间需要同时操作燃烧进度和燃烧时长。此方法通过简单除法获取熔炉视觉燃烧条内的总进度。 为获得清晰的视觉效果,(燃烧进度 / 燃烧时长) 应返回一个0到1之间的数字(包含0和1)。
- 参数:
burnProgress- 燃烧时长的进度burnDuration- 视图应保持燃烧的总时长原文:Sets the burn time
Setting burn time requires manipulation of both burnProgress and burnDuration. This method does a simple division to get total progress within the furnaces visual burning bar. For a clear visual effect (burnProgress / burnDuration) should return a number between 0 and 1 inclusively.
burnProgress- the progress towards the burnDurationburnDuration- the total duration the view should be lit
-