接口 EnchantmentView
- 所有超级接口:
InventoryView
An instance of
InventoryView
which provides extra methods related to
enchantment table view data.-
嵌套类概要
从接口继承的嵌套类/接口 org.bukkit.inventory.InventoryView
InventoryView.Property
-
字段概要
从接口继承的字段 org.bukkit.inventory.InventoryView
OUTSIDE
-
方法概要
修饰符和类型方法说明int
Gets the random enchantment seed used in this viewGets the offers of this EnchantmentView获取此窗口视图上方的物品栏.void
setOffers
(@NotNull EnchantmentOffer[] offers) Sets the offers to provide to the player.从接口继承的方法 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- 返回:
- The random seed used
-
getOffers
Gets the offers of this EnchantmentView- 返回:
- The enchantment offers that are provided
-
setOffers
Sets the offers to provide to the player.- 参数:
offers
- The offers to provide- 抛出:
IllegalArgumentException
- if the array length isn't 3
-