| Package | Description | 
|---|---|
| org.bukkit | 
 The root package of the Bukkit API, contains generalized API classes. 
 | 
| org.bukkit.entity | 
 Interfaces for non-voxel objects that can exist in a  
world, including all players, monsters, projectiles, etc. | 
| org.bukkit.event.inventory | |
| org.bukkit.inventory | 
 Classes involved in manipulating player inventories and item interactions. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
@NotNull Merchant | 
Server.createMerchant(net.kyori.adventure.text.Component title)
Creates an empty merchant. 
 | 
static @NotNull Merchant | 
Bukkit.createMerchant(net.kyori.adventure.text.Component title)
Creates an empty merchant. 
 | 
@NotNull Merchant | 
Server.createMerchant(@Nullable String title)
Deprecated. 
 
 | 
static @NotNull Merchant | 
Bukkit.createMerchant(@Nullable String title)
Deprecated. 
 
 | 
| Modifier and Type | Interface and Description | 
|---|---|
interface  | 
AbstractVillager
Represents a villager NPC 
 | 
interface  | 
Villager
Represents a villager NPC 
 | 
interface  | 
WanderingTrader
Represents a wandering trader NPC 
 | 
| Modifier and Type | Method and Description | 
|---|---|
@Nullable InventoryView | 
HumanEntity.openMerchant(@NotNull Merchant merchant,
            boolean force)
Starts a trade between the player and the merchant. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
@NotNull Merchant | 
TradeSelectEvent.getMerchant()
Get the Merchant involved. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
@NotNull Merchant | 
MerchantInventory.getMerchant()
Gets the Merchant associated with this inventory. 
 | 
Copyright © 2022. All rights reserved.