Uses of Class
org.bukkit.inventory.MerchantRecipe
Package
Description
Classes involved in manipulating player inventories and item interactions.
-
Uses of MerchantRecipe in io.papermc.paper.event.player
Modifier and TypeMethodDescriptionPlayerPurchaseEvent.getTrade()
Gets the associated trade with this eventModifier and TypeMethodDescriptionvoid
PlayerPurchaseEvent.setTrade
(MerchantRecipe trade) Sets the trade.ModifierConstructorDescriptionPlayerPurchaseEvent
(Player player, MerchantRecipe trade, boolean rewardExp, boolean increaseTradeUses) PlayerTradeEvent
(Player player, AbstractVillager villager, MerchantRecipe trade, boolean rewardExp, boolean increaseTradeUses) -
Uses of MerchantRecipe in org.bukkit.event.entity
Modifier and TypeMethodDescriptionVillagerAcquireTradeEvent.getRecipe()
Get the recipe to be acquired.VillagerReplenishTradeEvent.getRecipe()
Get the recipe to replenish.Modifier and TypeMethodDescriptionvoid
VillagerAcquireTradeEvent.setRecipe
(@NotNull MerchantRecipe recipe) Set the recipe to be acquired.void
VillagerReplenishTradeEvent.setRecipe
(@NotNull MerchantRecipe recipe) Set the recipe to replenish.ModifierConstructorDescriptionVillagerAcquireTradeEvent
(@NotNull AbstractVillager what, @NotNull MerchantRecipe recipe) -
Uses of MerchantRecipe in org.bukkit.inventory
Modifier and TypeMethodDescriptionMerchant.getRecipe
(int i) Get the recipe at a certain index of this merchant's trade list.MerchantInventory.getSelectedRecipe()
Get the currently active recipe.Modifier and TypeMethodDescriptionMerchant.getRecipes()
Get a list of trades currently available from this merchant.Modifier and TypeMethodDescriptionvoid
Merchant.setRecipe
(int i, @NotNull MerchantRecipe recipe) Set the recipe at a certain index of this merchant's trade list.Modifier and TypeMethodDescriptionvoid
Merchant.setRecipes
(@NotNull List<MerchantRecipe> recipes) Set the list of trades currently available from this merchant.