| Package | Description |
|---|---|
| com.destroystokyo.paper.entity.ai | |
| io.papermc.paper.event.player | |
| org.bukkit.entity |
Interfaces for non-voxel objects that can exist in a
world, including all players, monsters, projectiles, etc. |
| org.bukkit.event.entity |
| Modifier and Type | Field | Description |
|---|---|---|
static GoalKey<AbstractVillager> |
VanillaGoal.LOOK_AT_TRADING_PLAYER |
|
static GoalKey<AbstractVillager> |
VanillaGoal.TRADE_WITH_PLAYER |
| Modifier and Type | Method | Description |
|---|---|---|
AbstractVillager |
PlayerTradeEvent.getVillager() |
Gets the Villager or Wandering trader associated with this event
|
| Constructor | Description |
|---|---|
PlayerTradeEvent(Player player,
AbstractVillager villager,
MerchantRecipe trade,
boolean rewardExp,
boolean increaseTradeUses) |
| Modifier and Type | Interface | Description |
|---|---|---|
interface |
Villager |
Represents a villager NPC
|
interface |
WanderingTrader |
Represents a wandering trader NPC
|
| Modifier and Type | Method | Description |
|---|---|---|
AbstractVillager |
VillagerAcquireTradeEvent.getEntity() |
|
AbstractVillager |
VillagerReplenishTradeEvent.getEntity() |
| Constructor | Description |
|---|---|
VillagerAcquireTradeEvent(AbstractVillager what,
MerchantRecipe recipe) |
|
VillagerReplenishTradeEvent(AbstractVillager what,
MerchantRecipe recipe,
int bonus) |
Copyright © 2021. All rights reserved.