接口 CrafterView
- 所有超级接口:
InventoryView
一个提供与合成器视图数据相关额外方法的
InventoryView 实例。-
嵌套类概要
从接口继承的嵌套类/接口 org.bukkit.inventory.InventoryView
InventoryView.Property -
字段概要
从接口继承的字段 org.bukkit.inventory.InventoryView
OUTSIDE -
方法概要
修饰符和类型方法说明获取此窗口视图上方的物品栏.boolean检查此合成器视图是否被通电。booleanisSlotDisabled(int slot) 检查给定的合成器槽位是否被禁用。voidsetSlotDisabled(int slot, boolean disabled) 设置合成器槽位的状态。从接口继承的方法 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- 返回:
- 物品栏
-
isSlotDisabled
boolean isSlotDisabled(int slot) 检查给定的合成器槽位是否被禁用。- 参数:
slot- 要检查的槽位slot- the slot to check- 返回:
- 如果槽位被禁用则返回true,否则返回false
原文:Checks if the given crafter slot is disabled.
-
isPowered
boolean isPowered()检查此合成器视图是否被通电。- 返回:
- 如果合成器被通电则返回true
原文:Checks whether or not this crafter view is powered.
-
setSlotDisabled
void setSlotDisabled(int slot, boolean disabled) 设置合成器槽位的状态。- 参数:
slot- 要设置状态的槽位disabled- 如果槽位应被禁用则为true,否则为false原文:Sets the status of the crafter slot.
slot- the slot to set the status ofdisabled- true if the slot should be disabled otherwise false
-