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