类的使用
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
(@NotNull MerchantRecipe recipe) Set the recipe to be acquired.void
VillagerReplenishTradeEvent.setRecipe
(@NotNull MerchantRecipe recipe) Set the recipe to replenish.限定符构造器说明VillagerAcquireTradeEvent
(@NotNull AbstractVillager what, @NotNull MerchantRecipe recipe) -
org.bukkit.inventory中MerchantRecipe的使用
修饰符和类型方法说明Merchant.getRecipe
(int i) 获取该商人的交易列表的某个索引处的MerchantRecipe
.MerchantInventory.getSelectedRecipe()
获取当前活跃的交易配方.修饰符和类型方法说明void
Merchant.setRecipe
(int i, @NotNull MerchantRecipe recipe) 设置在该商人的交易列表的指定索引处的MerchantRecipe
.