private MerchantRecipe createMerchantRecipe(ItemStack buyItem1, ItemStack buyItem2, ItemStack sellingItem) {
assert !Utils.isEmpty(sellingItem) && !Utils.isEmpty(buyItem1);
MerchantRecipe recipe = new MerchantRecipe(sellingItem, 10000); // no max-uses limit
recipe.setExperienceReward(false); // no experience rewards
recipe.addIngredient(buyItem1);
if (!Utils.isEmpty(buyItem2)) {
recipe.addIngredient(buyItem2);
}
return recipe;
}
NMSHandler.java 文件源码
java
阅读 33
收藏 0
点赞 0
评论 0
项目:Shopkeepers
作者:
评论列表
文章目录