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 and 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.openWorkbench(Location location,
boolean force)
Opens an empty workbench inventory window with the player's inventory
on the bottom.
|
Modifier and Type | Method and Description |
---|---|
void |
HumanEntity.openInventory(InventoryView inventory)
Opens an inventory window to the specified inventory view.
|
Constructor and 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,
int[] levelsOffered,
int bonus) |
Modifier and Type | Field and Description |
---|---|
protected InventoryView |
InventoryEvent.transaction |
Modifier and Type | Method and Description |
---|---|
InventoryView |
InventoryEvent.getView()
Gets the view object itself
|
Copyright © 2021. All rights reserved.