Package | Description |
---|---|
com.destroystokyo.paper.event.block | |
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 |
Constructor and Description |
---|
AnvilDamagedEvent(InventoryView inventory,
BlockData blockData) |
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(Merchant merchant,
boolean force)
Starts a trade between the player and the merchant.
|
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,
EnchantmentOffer[] offers,
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 © 2022. All rights reserved.