GT_CustomLoader.java 文件源码

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

项目:NewHorizonsCoreMod 作者:
private void fixEnderIO(){
    //Example of how to add a recipe:

    NBTTagCompound root = new NBTTagCompound();
    root.setString(SoulBinderRecipeManager.KEY_RECIPE_UID, "sentientEnderMK2");
    root.setInteger(SoulBinderRecipeManager.KEY_REQUIRED_ENERGY, 100000);
    root.setInteger(SoulBinderRecipeManager.KEY_REQUIRED_XP, 10);
    root.setString(SoulBinderRecipeManager.KEY_SOUL_TYPES, "SpecialMobs.SpecialWitch");
    ItemStack is = new ItemStack(EnderIO.itemFrankenSkull, 1, FrankenSkull.ENDER_RESONATOR.ordinal());
    NBTTagCompound stackRoot = new NBTTagCompound();
    is.writeToNBT(stackRoot);
    root.setTag(SoulBinderRecipeManager.KEY_INPUT_STACK, stackRoot);
    is = new ItemStack(EnderIO.itemFrankenSkull, 1, FrankenSkull.SENTIENT_ENDER.ordinal());
    stackRoot = new NBTTagCompound();
    is.writeToNBT(stackRoot);
    root.setTag(SoulBinderRecipeManager.KEY_OUTPUT_STACK, stackRoot);

    SoulBinderRecipeManager.getInstance().addRecipeFromNBT(root);
    FMLInterModComms.sendMessage("EnderIO",  "recipe:soulbinder", root);

}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号