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.core.nbt.NBTRecipeGrenade;
9 import pcc.chemicraft.util.Formula;
13 * @author mozipi,ponkotate
15 public class ChemiCraftRegisterBaseRecipe extends ChemiCraftBaseRegister {
17 public ChemiCraftRegisterBaseRecipe(ChemiCraftBase mod) {
24 this.mod.api.addChemicalCombinationRecipe(
25 new ItemStack(ChemiCraftCore.instance.itemCompounds, 1, this.mod.api.getCompound("SodiumChloride")),
28 this.mod.api.addChemicalCombinationRecipe(
29 new ItemStack(ChemiCraftCore.instance.itemCompounds, 1, this.mod.api.getCompound("ChlorousAcid")),
30 new Formula("HO2Cl"));
33 this.mod.api.addChemicalCombinationRecipe(new ItemStack(Item.diamond),
34 new Formula("C64Si16"));
36 this.mod.api.addChemicalCombinationRecipe(new ItemStack(Item.sugar),
37 new Formula("C12H22O11"));
39 this.mod.api.addElectrolysisDecompositionRecipe(new ItemStack(Item.bucketWater),
42 this.mod.api.addElectrolysisDecompositionRecipe(new ItemStack(Item.potion, 1, 0),
45 this.mod.api.addPyrolysisDecompositionRecipe(new ItemStack(Block.oreCoal),
48 this.mod.api.addPyrolysisDecompositionRecipe(new ItemStack(Item.coal),
51 this.mod.api.addReversibleOfElectrolysis(new ItemStack(Block.wood),
52 new Formula("C6H10O5"));
54 this.mod.api.addReversibleOfPyrolysis(new ItemStack(Block.dirt),
55 new Formula("SiI2O2"));
57 this.mod.api.addReversibleOfPyrolysis(new ItemStack(Block.glass),
58 new Formula("SiCO2"));
60 this.mod.api.addReversibleOfPyrolysis(new ItemStack(Block.stone),
63 this.mod.api.addReversibleOfPyrolysis(new ItemStack(Block.tnt),
64 new Formula("C7H5N3O6"));
66 this.mod.api.addReversibleOfPyrolysis(new ItemStack(Item.emerald),
67 new Formula("Be3Al2Si6O18"));
71 //RP2-------------------------------------------------------------------------------------------------------------
72 this.mod.api.addPyrolysisDecompositionRecipe(
73 OreDictionary.getOres("oreCopper"), new Formula("Cu"));
74 //------------------------------------------------------------------------------------------------------------------
77 this.mod.api.addMaterialRecipe(
80 new ItemStack(Block.stone),
82 new ItemStack(Block.stone),
83 new ItemStack(Item.gunpowder),
84 new ItemStack(Block.stone),
86 new ItemStack(Block.stone),
89 new ItemStack(this.mod.itemAtomGrenade, 16, 0),
90 new NBTRecipeGrenade());
92 this.mod.api.addSharplessMaterialRecipe(
94 new ItemStack(this.mod.itemAtomGrenade, 1, 0),
96 new ItemStack(this.mod.itemAtomGrenade, 1, 0),
97 new NBTRecipeGrenade()
101 this.mod.api.addElectrolysisDecompositionRecipe(
102 new ItemStack(ChemiCraftCore.instance.itemCompounds, 1, this.mod.api.getCompound("Water")),
106 for (int i = 0; i < this.mod.apiBase.getAtomOresAtomName().size(); i++) {
107 this.mod.api.addPyrolysisDecompositionRecipe(
108 new ItemStack(this.mod.blockAtomOres[i / 16], 1, i - i / 16 * 16),
109 this.mod.apiBase.getAtomOresFormulas().get(this.mod.apiBase.getAtomOresAtomName().get(i)));