Package | Description |
---|---|
io.papermc.paper.event.player | |
org.bukkit.event.entity | |
org.bukkit.inventory |
Classes involved in manipulating player inventories and item interactions.
|
Modifier and Type | Method and Description |
---|---|
@NotNull MerchantRecipe |
PlayerTradeEvent.getTrade()
Gets the associated trade with this event
|
Modifier and Type | Method and Description |
---|---|
void |
PlayerTradeEvent.setTrade(@Nullable MerchantRecipe trade)
Sets the trade.
|
Constructor and Description |
---|
PlayerTradeEvent(@NotNull Player player,
@NotNull AbstractVillager villager,
@NotNull MerchantRecipe trade,
boolean rewardExp,
boolean increaseTradeUses) |
Modifier and Type | Method and Description |
---|---|
@NotNull MerchantRecipe |
VillagerReplenishTradeEvent.getRecipe()
Get the recipe to replenish.
|
@NotNull MerchantRecipe |
VillagerAcquireTradeEvent.getRecipe()
Get the recipe to be acquired.
|
Modifier and Type | Method and Description |
---|---|
void |
VillagerReplenishTradeEvent.setRecipe(@NotNull MerchantRecipe recipe)
Set the recipe to replenish.
|
void |
VillagerAcquireTradeEvent.setRecipe(@NotNull MerchantRecipe recipe)
Set the recipe to be acquired.
|
Constructor and Description |
---|
VillagerAcquireTradeEvent(@NotNull AbstractVillager what,
@NotNull MerchantRecipe recipe) |
VillagerReplenishTradeEvent(@NotNull AbstractVillager what,
@NotNull MerchantRecipe recipe,
int bonus) |
Modifier and Type | Method and Description |
---|---|
@NotNull MerchantRecipe |
Merchant.getRecipe(int i)
Get the recipe at a certain index of this merchant's trade list.
|
@Nullable MerchantRecipe |
MerchantInventory.getSelectedRecipe()
Get the currently active recipe.
|
Modifier and Type | Method and Description |
---|---|
void |
Merchant.setRecipe(int i,
@NotNull MerchantRecipe recipe)
Set the recipe at a certain index of this merchant's trade list.
|
Copyright © 2021. All rights reserved.