Package | Description |
---|---|
org.bukkit.event.entity | |
org.bukkit.inventory |
Classes involved in manipulating player inventories and item interactions.
|
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 © 2022. All rights reserved.