类的使用
org.bukkit.inventory.MerchantRecipe
-
org.bukkit.event.entity中MerchantRecipe的使用
修饰符和类型方法说明VillagerAcquireTradeEvent.getRecipe()
Get the recipe to be acquired.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) -
org.bukkit.inventory中MerchantRecipe的使用
修饰符和类型方法说明Merchant.getRecipe
(int i) 获取该商人的交易列表的某个索引处的MerchantRecipe
.MerchantInventory.getSelectedRecipe()
获取当前选择的交易配方.修饰符和类型方法说明void
Merchant.setRecipe
(int i, MerchantRecipe recipe) 设置在该商人的交易列表的指定索引处的MerchantRecipe
.