| Package | Description | 
|---|---|
| org.bukkit | More generalized classes in the API. | 
| 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 | Description | 
|---|---|---|
| static Merchant | Bukkit. createMerchant(String title) | Creates an empty merchant. | 
| Merchant | Server. createMerchant(String title) | Creates an empty merchant. | 
| Modifier and Type | Interface | Description | 
|---|---|---|
| interface  | AbstractVillager | Represents a villager NPC | 
| interface  | Villager | Represents a villager NPC | 
| interface  | WanderingTrader | Represents a wandering trader NPC | 
| Modifier and Type | Method | Description | 
|---|---|---|
| InventoryView | HumanEntity. openMerchant(Merchant merchant,
            boolean force) | Starts a trade between the player and the merchant. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| Merchant | TradeSelectEvent. getMerchant() | Get the Merchant involved. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| Merchant | MerchantInventory. getMerchant() | Gets the Merchant associated with this inventory. | 
Copyright © 2020. All rights reserved.