Package | Description |
---|---|
com.destroystokyo.paper.event.block | |
com.destroystokyo.paper.event.inventory | |
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(@NotNull InventoryView inventory,
@NotNull BlockData blockData) |
Constructor and Description |
---|
PrepareGrindstoneEvent(@NotNull InventoryView inventory,
@Nullable ItemStack result)
Deprecated.
|
PrepareResultEvent(@NotNull InventoryView inventory,
@Nullable ItemStack result) |
Modifier and Type | Method and Description |
---|---|
@NotNull InventoryView |
HumanEntity.getOpenInventory()
Gets the inventory view the player is currently viewing.
|
@Nullable InventoryView |
HumanEntity.openAnvil(@Nullable Location location,
boolean force)
Opens an empty anvil inventory window with the player's inventory
on the bottom.
|
@Nullable InventoryView |
HumanEntity.openCartographyTable(@Nullable Location location,
boolean force)
Opens an empty cartography table inventory window with the player's inventory
on the bottom.
|
@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.openGrindstone(@Nullable Location location,
boolean force)
Opens an empty grindstone 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.openLoom(@Nullable Location location,
boolean force)
Opens an empty loom inventory window with the player's inventory
on the bottom.
|
@Nullable InventoryView |
HumanEntity.openMerchant(@NotNull Merchant merchant,
boolean force)
Starts a trade between the player and the merchant.
|
@Nullable InventoryView |
HumanEntity.openMerchant(@NotNull Villager trader,
boolean force)
Starts a trade between the player and the villager.
|
@Nullable InventoryView |
HumanEntity.openSmithingTable(@Nullable Location location,
boolean force)
Opens an empty smithing table inventory window with the player's inventory
on the bottom.
|
@Nullable InventoryView |
HumanEntity.openStonecutter(@Nullable Location location,
boolean force)
Opens an empty stonecutter inventory window with the player's inventory
on the bottom.
|
@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 and Description |
---|---|
void |
HumanEntity.openInventory(@NotNull InventoryView inventory)
Opens an inventory window to the specified inventory view.
|
Constructor and 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 and Description |
---|---|
protected InventoryView |
InventoryEvent.transaction |
Modifier and Type | Method and Description |
---|---|
@NotNull InventoryView |
InventoryEvent.getView()
Gets the view object itself
|
Copyright © 2021. All rights reserved.