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 and Description |
---|---|
Merchant |
Server.createMerchant(String title)
Creates an empty merchant.
|
static Merchant |
Bukkit.createMerchant(String title)
Creates an empty merchant.
|
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 |
---|---|
InventoryView |
HumanEntity.openMerchant(Merchant merchant,
boolean force)
Starts a trade between the player and the merchant.
|
Modifier and Type | Method and Description |
---|---|
Merchant |
TradeSelectEvent.getMerchant()
Get the Merchant involved.
|
Modifier and Type | Method and Description |
---|---|
Merchant |
MerchantInventory.getMerchant()
Gets the Merchant associated with this inventory.
|
Copyright © 2022. All rights reserved.