NMSHandler.java 文件源码

java
阅读 29 收藏 0 点赞 0 评论 0

项目:Shopkeepers 作者:
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;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号