类的使用
org.bukkit.inventory.MerchantRecipe
使用MerchantRecipe的程序包
-
org.bukkit.event.entity中MerchantRecipe的使用
修饰符和类型方法说明VillagerAcquireTradeEvent.getRecipe()
Get the recipe to be acquired.VillagerReplenishTradeEvent.getRecipe()
Get the recipe to replenish.参数类型为MerchantRecipe的org.bukkit.event.entity中的方法修饰符和类型方法说明void
VillagerAcquireTradeEvent.setRecipe
(MerchantRecipe recipe) Set the recipe to be acquired.void
VillagerReplenishTradeEvent.setRecipe
(MerchantRecipe recipe) Set the recipe to replenish.参数类型为MerchantRecipe的org.bukkit.event.entity中的构造器限定符构造器说明VillagerAcquireTradeEvent
(Villager what, MerchantRecipe recipe) VillagerReplenishTradeEvent
(Villager what, MerchantRecipe recipe, int bonus) -
org.bukkit.inventory中MerchantRecipe的使用
修饰符和类型方法说明Merchant.getRecipe
(int i) 获取该商人的交易列表的某个索引处的MerchantRecipe
.MerchantInventory.getSelectedRecipe()
获取当前选择的交易配方.返回变量类型为MerchantRecipe的类型的org.bukkit.inventory中的方法参数类型为MerchantRecipe的org.bukkit.inventory中的方法修饰符和类型方法说明void
Merchant.setRecipe
(int i, MerchantRecipe recipe) 设置在该商人的交易列表的指定索引处的MerchantRecipe
.类型变量类型为MerchantRecipe的org.bukkit.inventory中的方法参数