类的使用
org.bukkit.inventory.InventoryView
-
org.bukkit.entity中InventoryView的使用
修饰符和类型方法说明HumanEntity.getOpenInventory()
获取玩家正在查看的物品栏.HumanEntity.openEnchanting
(Location location, boolean force) 打开一个空白附魔台物品栏界面, 玩家物品栏(背包)在底部.HumanEntity.openInventory
(Inventory inventory) 打开一个物品栏, 窗口顶部为你指定的物品栏, 底部为玩家物品栏(背包).HumanEntity.openMerchant
(Villager trader, boolean force) 与某村民开始交易.HumanEntity.openMerchant
(Merchant merchant, boolean force) 与某商人开始交易.HumanEntity.openWorkbench
(Location location, boolean force) 打开一个空白工作台物品栏界面, 玩家物品栏(背包)在底部. -
org.bukkit.event.enchantment中InventoryView的使用
限定符构造器说明EnchantItemEvent
(Player enchanter, InventoryView view, Block table, ItemStack item, int level, Map<Enchantment, Integer> enchants, int i) PrepareItemEnchantEvent
(Player enchanter, InventoryView view, Block table, ItemStack item, EnchantmentOffer[] offers, int bonus) -
org.bukkit.event.inventory中InventoryView的使用
限定符构造器说明CraftItemEvent
(Recipe recipe, InventoryView what, InventoryType.SlotType type, int slot, ClickType click, InventoryAction action) CraftItemEvent
(Recipe recipe, InventoryView what, InventoryType.SlotType type, int slot, ClickType click, InventoryAction action, int key) InventoryClickEvent
(InventoryView view, InventoryType.SlotType type, int slot, ClickType click, InventoryAction action) InventoryClickEvent
(InventoryView view, InventoryType.SlotType type, int slot, ClickType click, InventoryAction action, int key) InventoryCloseEvent
(InventoryView transaction) InventoryCreativeEvent
(InventoryView what, InventoryType.SlotType type, int slot, ItemStack newItem) InventoryDragEvent
(InventoryView what, ItemStack newCursor, ItemStack oldCursor, boolean right, Map<Integer, ItemStack> slots) InventoryEvent
(InventoryView transaction) InventoryInteractEvent
(InventoryView transaction) InventoryOpenEvent
(InventoryView transaction) PrepareAnvilEvent
(InventoryView inventory, ItemStack result) PrepareItemCraftEvent
(CraftingInventory what, InventoryView view, boolean isRepair)