接口 EnchantmentView
- 所有超级接口:
InventoryView
一个提供与附魔台视图数据相关额外方法的
InventoryView 实例。-
嵌套类概要
从接口继承的嵌套类/接口 org.bukkit.inventory.InventoryView
InventoryView.Property -
字段概要
从接口继承的字段 org.bukkit.inventory.InventoryView
OUTSIDE -
方法概要
修饰符和类型方法说明int获取此视图中使用的随机附魔种子。获取此EnchantmentView的附魔选项。获取此窗口视图上方的物品栏.voidsetOffers(@NotNull EnchantmentOffer[] offers) 设置要提供给玩家的附魔选项。从接口继承的方法 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- 返回:
- 物品栏
-
getEnchantmentSeed
int getEnchantmentSeed()获取此视图中使用的随机附魔种子。- 返回:
- 使用的随机种子
原文:Gets the random enchantment seed used in this view
-
getOffers
获取此EnchantmentView的附魔选项。- 返回:
- 提供的附魔选项
原文:Gets the offers of this EnchantmentView
-
setOffers
设置要提供给玩家的附魔选项。- 参数:
offers- 要提供的附魔选项offers- The offers to provide- 抛出:
IllegalArgumentException- 如果数组长度不为3原文:Sets the offers to provide to the player.
IllegalArgumentException- if the array length isn't 3
-