use of minechem.oredictionary.OreDictionaryHandler in project Minechem by iopleke.
the class MinechemRecipes method registerOre.
public void registerOre(String oreName) {
if (oreName.contains("gemApatite")) {
DecomposerRecipe.createAndAddRecipeSafely(oreName, new PotionChemical[] { this.element(ElementEnum.Ca, 5), this.molecule(MoleculeEnum.phosphate, 4), this.element(ElementEnum.Cl) });
SynthesisRecipe.createAndAddRecipeSafely(oreName, false, 1000, new PotionChemical[] { this.element(ElementEnum.Ca, 5), this.molecule(MoleculeEnum.phosphate, 4), this.element(ElementEnum.Cl) });
} else if (oreName.contains("plateSilicon")) {
DecomposerRecipe.createAndAddRecipeSafely(oreName, new PotionChemical[] { this.element(ElementEnum.Si, 2) });
SynthesisRecipe.createAndAddRecipeSafely(oreName, false, 1000, new PotionChemical[] { this.element(ElementEnum.Si, 2) });
} else if (oreName.contains("xychoriumBlue")) {
DecomposerRecipe.createAndAddRecipeSafely(oreName, new PotionChemical[] { this.element(ElementEnum.Zr, 2), this.element(ElementEnum.Cu, 1) });
SynthesisRecipe.createAndAddRecipeSafely(oreName, false, 300, new PotionChemical[] { this.element(ElementEnum.Zr, 2), this.element(ElementEnum.Cu, 1) });
} else if (oreName.contains("xychoriumRed")) {
DecomposerRecipe.createAndAddRecipeSafely(oreName, new PotionChemical[] { this.element(ElementEnum.Zr, 2), this.element(ElementEnum.Fe, 1) });
SynthesisRecipe.createAndAddRecipeSafely(oreName, false, 300, new PotionChemical[] { this.element(ElementEnum.Zr, 2), this.element(ElementEnum.Fe, 1) });
} else if (oreName.contains("xychoriumGreen")) {
DecomposerRecipe.createAndAddRecipeSafely(oreName, new PotionChemical[] { this.element(ElementEnum.Zr, 2), this.element(ElementEnum.V, 1) });
SynthesisRecipe.createAndAddRecipeSafely(oreName, false, 300, new PotionChemical[] { this.element(ElementEnum.Zr, 2), this.element(ElementEnum.V, 1) });
} else if (oreName.contains("xychoriumDark")) {
DecomposerRecipe.createAndAddRecipeSafely(oreName, new PotionChemical[] { this.element(ElementEnum.Zr, 2), this.element(ElementEnum.Si, 1) });
SynthesisRecipe.createAndAddRecipeSafely(oreName, false, 300, new PotionChemical[] { this.element(ElementEnum.Zr, 2), this.element(ElementEnum.Si, 1) });
} else if (oreName.contains("xychoriumLight")) {
DecomposerRecipe.createAndAddRecipeSafely(oreName, new PotionChemical[] { this.element(ElementEnum.Zr, 2), this.element(ElementEnum.Ti, 1) });
SynthesisRecipe.createAndAddRecipeSafely(oreName, false, 300, new PotionChemical[] { this.element(ElementEnum.Zr, 2), this.element(ElementEnum.Ti, 1) });
} else if (oreName.contains("gemPeridot")) {
DecomposerRecipe.createAndAddRecipeSafely(oreName, new PotionChemical[] { this.molecule(MoleculeEnum.olivine) });
SynthesisRecipe.createAndAddRecipeSafely(oreName, false, 1000, new PotionChemical[] { this.molecule(MoleculeEnum.olivine) });
} else if (oreName.contains("cropMaloberry")) {
DecomposerRecipe.createAndAddRecipeSafely(oreName, new PotionChemical[] { this.molecule(MoleculeEnum.xylitol), this.molecule(MoleculeEnum.sucrose) });
SynthesisRecipe.createAndAddRecipeSafely(oreName, false, 1000, new PotionChemical[] { this.molecule(MoleculeEnum.xylitol), this.molecule(MoleculeEnum.sucrose) });
} else if (oreName.contains("cropDuskberry")) {
if (Settings.recreationalChemicalEffects) {
DecomposerRecipe.createAndAddRecipeSafely(oreName, new PotionChemical[] { this.molecule(MoleculeEnum.psilocybin), this.element(ElementEnum.S, 2) });
SynthesisRecipe.createAndAddRecipeSafely(oreName, false, 1000, new PotionChemical[] { this.molecule(MoleculeEnum.psilocybin), this.element(ElementEnum.S, 2) });
}
} else if (oreName.contains("cropSkyberry")) {
DecomposerRecipe.createAndAddRecipeSafely(oreName, new PotionChemical[] { this.molecule(MoleculeEnum.theobromine), this.element(ElementEnum.S, 2) });
SynthesisRecipe.createAndAddRecipeSafely(oreName, false, 1000, new PotionChemical[] { this.molecule(MoleculeEnum.theobromine), this.element(ElementEnum.S, 2) });
} else if (oreName.contains("cropBlightberry")) {
DecomposerRecipe.createAndAddRecipeSafely(oreName, new PotionChemical[] { this.molecule(MoleculeEnum.asprin), this.element(ElementEnum.S, 2) });
SynthesisRecipe.createAndAddRecipeSafely(oreName, false, 1000, new PotionChemical[] { this.molecule(MoleculeEnum.asprin), this.element(ElementEnum.S, 2) });
} else if (oreName.contains("cropBlueberry")) {
DecomposerRecipe.createAndAddRecipeSafely(oreName, new PotionChemical[] { this.molecule(MoleculeEnum.blueorgodye), this.molecule(MoleculeEnum.sucrose, 2) });
SynthesisRecipe.createAndAddRecipeSafely(oreName, false, 1000, new PotionChemical[] { this.molecule(MoleculeEnum.blueorgodye), this.molecule(MoleculeEnum.sucrose, 2) });
} else if (oreName.contains("cropRaspberry")) {
DecomposerRecipe.createAndAddRecipeSafely(oreName, new PotionChemical[] { this.molecule(MoleculeEnum.redorgodye), this.molecule(MoleculeEnum.sucrose, 2) });
SynthesisRecipe.createAndAddRecipeSafely(oreName, false, 1000, new PotionChemical[] { this.molecule(MoleculeEnum.redorgodye), this.molecule(MoleculeEnum.sucrose, 2) });
} else if (oreName.contains("cropBlackberry")) {
DecomposerRecipe.createAndAddRecipeSafely(oreName, new PotionChemical[] { this.molecule(MoleculeEnum.purpleorgodye), this.molecule(MoleculeEnum.sucrose, 2) });
SynthesisRecipe.createAndAddRecipeSafely(oreName, false, 1000, new PotionChemical[] { this.molecule(MoleculeEnum.purpleorgodye), this.molecule(MoleculeEnum.sucrose, 2) });
} else {
for (OreDictionaryHandler handler : this.oreDictionaryHandlers) {
if (handler.canHandle(oreName)) {
handler.handle(oreName);
return;
}
}
}
}
use of minechem.oredictionary.OreDictionaryHandler in project Minechem by iopleke.
the class MinechemRecipes method RegisterHandlers.
// END
public void RegisterHandlers() {
this.oreDictionaryHandlers = new ArrayList<OreDictionaryHandler>();
if (Loader.isModLoaded("Mekanism")) {
this.oreDictionaryHandlers.add(new OreDictionaryMekanismHandler());
}
if (Loader.isModLoaded("UndergroundBiomes")) {
this.oreDictionaryHandlers.add(new OreDictionaryUndergroundBiomesHandler());
}
if (Loader.isModLoaded("gregtech_addon")) {
this.oreDictionaryHandlers.add(new OreDictionaryGregTechHandler());
}
if (Loader.isModLoaded("IC2")) {
this.oreDictionaryHandlers.add(new OreDictionaryIC2Handler());
}
if (Loader.isModLoaded("appliedenergistics2")) {
this.oreDictionaryHandlers.add(new OreDictionaryAppliedEnergisticsHandler());
}
this.oreDictionaryHandlers.add(new OreDictionaryDefaultHandler());
}
Aggregations