1 package pcc.chemicraft.base;
3 import net.minecraft.block.Block;
4 import net.minecraft.item.Item;
5 import net.minecraft.item.ItemStack;
6 import net.minecraftforge.oredict.OreDictionary;
7 import pcc.chemicraft.core.ChemiCraftCore;
8 import pcc.chemicraft.util.Formula;
9 import pcc.chemicraft.util.NBTRecipeGrenade;
11 public class ChemiCraftRegisterBaseRecipe extends ChemiCraftBaseRegister {
13 public ChemiCraftRegisterBaseRecipe(ChemiCraftBase mod) {
23 this.mod.api.addChemicalCombinationRecipe(new ItemStack(ChemiCraftCore.instance.itemCompounds, 1, this.mod.api.getCompound("SodiumChloride")), new Formula("NaOH"));
24 this.mod.api.addChemicalCombinationRecipe(new ItemStack(ChemiCraftCore.instance.itemCompounds, 1, this.mod.api.getCompound("ChlorousAcid")), new Formula("HO2Cl"));
29 this.mod.api.addReversibleOfPyrolysis(new ItemStack(Block.dirt), new Formula("SiI2O2"));
30 this.mod.api.addReversibleOfPyrolysis(new ItemStack(Block.sand), new Formula("SiIO"));
31 this.mod.api.addReversibleOfPyrolysis(new ItemStack(Block.stone), new Formula("SiO2"));
32 this.mod.api.addReversibleOfPyrolysis(new ItemStack(Block.glass), new Formula("SiCO2"));
33 this.mod.api.addPyrolysisDecompositionRecipe(new ItemStack(Item.coal), new Formula("C"));
34 this.mod.api.addPyrolysisDecompositionRecipe(new ItemStack(Block.oreCoal), new Formula("C"));
35 this.mod.api.addElectrolysisDecompositionRecipe(new ItemStack(Item.bucketWater), new Formula("H2O"));
36 this.mod.api.addReversibleOfElectrolysis(new ItemStack(Block.wood), new Formula("C6H10O5"));
37 this.mod.api.addReversibleOfPyrolysis(new ItemStack(Block.tnt), new Formula("C7H5N3O6"));
38 this.mod.api.addReversibleOfPyrolysis(new ItemStack(Item.emerald), new Formula("Be3Al2Si6O18"));
39 this.mod.api.addChemicalCombinationRecipe(new ItemStack(Item.diamond), new Formula("C64Si16"));
44 this.mod.api.addPyrolysisDecompositionRecipe(
45 OreDictionary.getOres("oreCopper"), new Formula("Cu"));
52 this.mod.api.addMaterialRecipe(new ItemStack[] {
54 new ItemStack(Block.stone),
56 new ItemStack(Block.stone),
57 new ItemStack(Item.gunpowder),
58 new ItemStack(Block.stone),
60 new ItemStack(Block.stone),
63 new ItemStack(this.mod.itemAtomGrenade, 16, 0),
64 new NBTRecipeGrenade()
70 this.mod.api.addElectrolysisDecompositionRecipe(new ItemStack(Item.potion, 1, 0), new Formula("H2O"));
72 this.mod.api.addElectrolysisDecompositionRecipe(new ItemStack(ChemiCraftCore.instance.itemCompounds, 1, this.mod.api.getCompound("Water")),
75 for (int i = 0; i < this.mod.apiBase.getAtomOresName().sizeKeysList(); i++){
76 this.mod.api.addPyrolysisDecompositionRecipe(new ItemStack(this.mod.blockAtomOres[i / 16], 1, i - i / 16 * 16),
77 this.mod.apiBase.getAtomOresFormulas().get(this.mod.apiBase.getAtomOresName().getKeyList(i)));