ManCo.java 文件源码

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

项目:manco2 作者:
public void loadRecipes() {
    ItemStack stack = new ItemStack(Material.STONE, 1);
    ItemMeta meta = stack.getItemMeta();
    meta.setDisplayName("crate");
    stack.setItemMeta(meta);
    ShapedRecipe recipe1 = new ShapedRecipe(stack);
    recipe1.shape(new String[] {
            "AAA",
            "ABA",
            " A "
    });
    recipe1.setIngredient('A', Material.IRON_INGOT);
    recipe1.setIngredient('B', Material.GOLD_INGOT);

    ShapedRecipe recipe2 = new ShapedRecipe(stack);
    recipe2.shape(new String[] {
            "AAA",
            "ACA",
            " A "
    });
    recipe2.setIngredient('A', Material.IRON_INGOT);
    recipe2.setIngredient('C', Material.DIAMOND);

    Bukkit.addRecipe(recipe1);
    Bukkit.addRecipe(recipe2);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号