| 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 |
Events triggered from an enchantment table. |
| org.bukkit.event.inventory |
| Modifier and Type | Method | Description |
|---|---|---|
InventoryView |
HumanEntity.getOpenInventory() |
Gets the inventory view the player is currently viewing.
|
InventoryView |
HumanEntity.openEnchanting(Location location,
boolean force) |
Opens an empty enchanting inventory window with the player's inventory
on the bottom.
|
InventoryView |
HumanEntity.openInventory(Inventory inventory) |
Opens an inventory window with the specified inventory on the top and
the player's inventory on the bottom.
|
InventoryView |
HumanEntity.openMerchant(Villager trader,
boolean force) |
Starts a trade between the player and the villager.
|
InventoryView |
HumanEntity.openMerchant(Merchant merchant,
boolean force) |
Starts a trade between the player and the merchant.
|
InventoryView |
HumanEntity.openWorkbench(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(InventoryView inventory) |
Opens an inventory window to the specified inventory view.
|
| Constructor | Description |
|---|---|
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) |
| Modifier and Type | Field | Description |
|---|---|---|
protected InventoryView |
InventoryEvent.transaction |
| Modifier and Type | Method | Description |
|---|---|---|
InventoryView |
InventoryEvent.getView() |
Gets the view object itself
|
Copyright © 2019. All rights reserved.