接口 FurnaceView
- 所有超级接口:
InventoryView
An instance of
InventoryView which provides extra methods related to
furnace view data.-
嵌套类概要
从接口继承的嵌套类/接口 org.bukkit.inventory.InventoryView
InventoryView.Property -
字段概要
从接口继承的字段 org.bukkit.inventory.InventoryView
OUTSIDE -
方法概要
修饰符和类型方法说明floatThe total burn time for this view.floatThe cook time for this view.获取此窗口视图上方的物品栏.booleanChecks whether or not the furnace is burningvoidsetBurnTime(int burnProgress, int burnDuration) Sets the burn timevoidsetCookTime(int cookProgress, int cookDuration) Sets the cook time从接口继承的方法 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()The cook time for this view.See
Furnace.getCookTime()for more information.- 返回:
- a number between 0 and 1
-
getBurnTime
float getBurnTime()The total burn time for this view.See
Furnace.getBurnTime()for more information.- 返回:
- a number between 0 and 1
-
isBurning
boolean isBurning()Checks whether or not the furnace is burning- 返回:
- true given that the furnace is burning
-
setCookTime
void setCookTime(int cookProgress, int cookDuration) Sets the cook timeSetting 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) Sets the burn timeSetting 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
-