public static void addSmelter(int energy, final ItemStack a, final ItemStack b, final ItemStack output, final ItemStack altOutput, final int prob) {
if (a == null || b == null || output == null) {
return;
}
if (energy <= 0) {
energy = 4000;
}
final NBTTagCompound tag = new NBTTagCompound();
tag.setInteger("energy", energy);
tag.setTag("primaryInput", (NBTBase)getItemStackNBT(a));
tag.setTag("secondaryInput", (NBTBase)getItemStackNBT(b));
tag.setTag("primaryOutput", (NBTBase)getItemStackNBT(output));
if (altOutput != null) {
tag.setTag("secondaryOutput", (NBTBase)getItemStackNBT(altOutput));
tag.setInteger("secondaryChance", prob);
}
FMLInterModComms.sendMessage("ThermalExpansion", "SmelterRecipe", tag);
}
TE4IMC.java 文件源码
java
阅读 25
收藏 0
点赞 0
评论 0
项目:ExtraUtilities
作者:
评论列表
文章目录