| Package | Description | 
|---|---|
| org.bukkit.entity | Interfaces for non-voxel objects that can exist in a  world, including all players, monsters, projectiles, etc. | 
| org.bukkit.event.enchantment | Eventstriggered from anenchantment table. | 
| org.bukkit.event.inventory | 
| Modifier and Type | Method | Description | 
|---|---|---|
| @NotNull InventoryView | HumanEntity. getOpenInventory() | Gets the inventory view the player is currently viewing. | 
| @Nullable InventoryView | HumanEntity. openEnchanting(@Nullable Location location,
              boolean force) | Opens an empty enchanting inventory window with the player's inventory
 on the bottom. | 
| @Nullable InventoryView | HumanEntity. openInventory(@NotNull Inventory inventory) | Opens an inventory window with the specified inventory on the top and
 the player's inventory on the bottom. | 
| @Nullable InventoryView | HumanEntity. openMerchant(@NotNull Villager trader,
            boolean force) | Starts a trade between the player and the villager. | 
| @Nullable InventoryView | HumanEntity. openMerchant(@NotNull Merchant merchant,
            boolean force) | Starts a trade between the player and the merchant. | 
| @Nullable InventoryView | HumanEntity. openWorkbench(@Nullable Location location,
             boolean force) | Opens an empty workbench inventory window with the player's inventory
 on the bottom. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| void | HumanEntity. openInventory(@NotNull InventoryView inventory) | Opens an inventory window to the specified inventory view. | 
| Constructor | Description | 
|---|---|
| EnchantItemEvent(@NotNull Player enchanter,
                @NotNull InventoryView view,
                @NotNull Block table,
                @NotNull ItemStack item,
                int level,
                @NotNull Map<Enchantment,Integer> enchants,
                int i) | |
| PrepareItemEnchantEvent(@NotNull Player enchanter,
                       @NotNull InventoryView view,
                       @NotNull Block table,
                       @NotNull ItemStack item,
                       @NotNull EnchantmentOffer[] offers,
                       int bonus) | 
| Modifier and Type | Field | Description | 
|---|---|---|
| protected InventoryView | InventoryEvent. transaction | 
| Modifier and Type | Method | Description | 
|---|---|---|
| @NotNull InventoryView | InventoryEvent. getView() | Gets the view object itself | 
| Constructor | Description | 
|---|---|
| CraftItemEvent(@NotNull Recipe recipe,
              @NotNull InventoryView what,
              @NotNull InventoryType.SlotType type,
              int slot,
              @NotNull ClickType click,
              @NotNull InventoryAction action) | |
| CraftItemEvent(@NotNull Recipe recipe,
              @NotNull InventoryView what,
              @NotNull InventoryType.SlotType type,
              int slot,
              @NotNull ClickType click,
              @NotNull InventoryAction action,
              int key) | |
| InventoryClickEvent(@NotNull InventoryView view,
                   @NotNull InventoryType.SlotType type,
                   int slot,
                   @NotNull ClickType click,
                   @NotNull InventoryAction action) | |
| InventoryClickEvent(@NotNull InventoryView view,
                   @NotNull InventoryType.SlotType type,
                   int slot,
                   @NotNull ClickType click,
                   @NotNull InventoryAction action,
                   int key) | |
| InventoryCloseEvent(@NotNull InventoryView transaction) | |
| InventoryCreativeEvent(@NotNull InventoryView what,
                      @NotNull InventoryType.SlotType type,
                      int slot,
                      @NotNull ItemStack newItem) | |
| InventoryDragEvent(@NotNull InventoryView what,
                  @Nullable ItemStack newCursor,
                  @NotNull ItemStack oldCursor,
                  boolean right,
                  @NotNull Map<Integer,ItemStack> slots) | |
| InventoryEvent(@NotNull InventoryView transaction) | |
| InventoryInteractEvent(@NotNull InventoryView transaction) | |
| InventoryOpenEvent(@NotNull InventoryView transaction) | |
| PrepareAnvilEvent(@NotNull InventoryView inventory,
                 @Nullable ItemStack result) | |
| PrepareItemCraftEvent(@NotNull CraftingInventory what,
                     @NotNull InventoryView view,
                     boolean isRepair) | |
| TradeSelectEvent(@NotNull InventoryView transaction,
                int newIndex) | 
Copyright © 2020. All rights reserved.