接口 BrewingStandView
- 所有超级接口:
InventoryView
一个提供与酿造台视图数据相关额外方法的
InventoryView 实例。-
嵌套类概要
从接口继承的嵌套类/接口 org.bukkit.inventory.InventoryView
InventoryView.Property -
字段概要
从接口继承的字段 org.bukkit.inventory.InventoryView
OUTSIDE -
方法概要
修饰符和类型方法说明int获取剩余的酿造刻数。int获取此酿造台的燃料等级。获取此窗口视图上方的物品栏.voidsetBrewingTicks(int ticks) 设置剩余的酿造刻数。voidsetFuelLevel(int level) 设置剩余的燃料等级。从接口继承的方法 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- 返回:
- 物品栏
-
getFuelLevel
int getFuelLevel()获取此酿造台的燃料等级。Minecraft中默认最大燃料等级为20。
- 返回:
- 剩余的燃料等级数量
原文:Gets the fuel level of this brewing stand.
The default maximum fuel level in minecraft is 20.
-
getBrewingTicks
int getBrewingTicks()获取剩余的酿造刻数。- 返回:
- 酿造任务剩余的刻数
原文:Gets the amount of brewing ticks left.
-
setFuelLevel
设置剩余的燃料等级。- 参数:
level- 燃料等级,不得小于0level- the level of the fuel, which is no less than 0- 抛出:
IllegalArgumentException- 如果等级小于0原文:Sets the fuel level left.
IllegalArgumentException- if the level is less than 0
-
setBrewingTicks
设置剩余的酿造刻数。- 参数:
ticks- 剩余的刻数,不得小于0ticks- the ticks left, which is no less than 0- 抛出:
IllegalArgumentException- 如果刻数小于0原文:Sets the brewing ticks left.
IllegalArgumentException- if the ticks are less than 0
-