| 程序包 | 说明 |
|---|---|
| org.bukkit.event.entity | |
| org.bukkit.inventory |
参与操作玩家物品栏和物品交互的类.
|
| 限定符和类型 | 方法和说明 |
|---|---|
MerchantRecipe |
VillagerAcquireTradeEvent.getRecipe()
Get the recipe to be acquired.
|
MerchantRecipe |
VillagerReplenishTradeEvent.getRecipe()
Get the recipe to replenish.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
VillagerAcquireTradeEvent.setRecipe(MerchantRecipe recipe)
Set the recipe to be acquired.
|
void |
VillagerReplenishTradeEvent.setRecipe(MerchantRecipe recipe)
Set the recipe to replenish.
|
| 构造器和说明 |
|---|
VillagerAcquireTradeEvent(Villager what,
MerchantRecipe recipe) |
VillagerReplenishTradeEvent(Villager what,
MerchantRecipe recipe,
int bonus) |
| 限定符和类型 | 方法和说明 |
|---|---|
MerchantRecipe |
Merchant.getRecipe(int i)
获取该商人的交易列表的某个索引处的
MerchantRecipe. |
MerchantRecipe |
MerchantInventory.getSelectedRecipe()
获取当前选择的交易配方.
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.util.List<MerchantRecipe> |
Merchant.getRecipes()
获取该商人当前可用的交易列表.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
Merchant.setRecipe(int i,
MerchantRecipe recipe)
设置在该商人的交易列表的指定索引处的
MerchantRecipe. |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
Merchant.setRecipes(java.util.List<MerchantRecipe> recipes)
设置该商家当前可用的交易列表.
|