@Override
public ItemStack[] getUsedTradingRecipe(MerchantInventory merchantInventory) {
MerchantRecipe merchantRecipe = merchantInventory.getSelectedRecipe();
List<ItemStack> ingredients = merchantRecipe.getIngredients();
ItemStack[] recipe = new ItemStack[3];
recipe[0] = ingredients.get(0);
recipe[1] = null;
if (ingredients.size() > 1) {
ItemStack buyItem2 = ingredients.get(1);
if (!Utils.isEmpty(buyItem2)) {
recipe[1] = buyItem2;
}
}
recipe[2] = merchantRecipe.getResult();
return recipe;
}
NMSHandler.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:Shopkeepers
作者:
评论列表
文章目录