package gregtech.loaders.postload.recipes;
import static gregtech.api.enums.Mods.AppliedEnergistics2;
import static gregtech.api.enums.Mods.Thaumcraft;
import static gregtech.api.util.GT_ModHandler.getModItem;
import java.util.Arrays;
import java.util.Collections;
import net.minecraft.init.Blocks;
import net.minecraft.item.ItemStack;
import gregtech.api.GregTech_API;
import gregtech.api.enchants.Enchantment_Hazmat;
import gregtech.api.enums.ItemList;
import gregtech.api.enums.Materials;
import gregtech.api.enums.OrePrefixes;
import gregtech.api.enums.TC_Aspects;
import gregtech.api.util.GT_LanguageManager;
import gregtech.api.util.GT_ModHandler;
import gregtech.api.util.GT_OreDictUnificator;
import gregtech.loaders.postload.GT_MachineRecipeLoader;
public class ThaumcraftRecipes implements Runnable {
@Override
public void run() {
if ((!Thaumcraft.isModLoaded()) || GregTech_API.sThaumcraftCompat == null) {
return;
}
// Add Recipe for TC Crucible: Salis Mundus to Balanced Shards
String tKey = "GT_BALANCE_SHARD_RECIPE";
GregTech_API.sThaumcraftCompat.addCrucibleRecipe(
"TB.SM",
getModItem(Thaumcraft.ID, "ItemResource", 1L, 14),
getModItem(Thaumcraft.ID, "ItemShard", 1L, 6),
Arrays.asList(
new TC_Aspects.TC_AspectStack(TC_Aspects.PRAECANTATIO, 2L),
new TC_Aspects.TC_AspectStack(TC_Aspects.ORDO, 1L)));
tKey = "GT_WOOD_TO_CHARCOAL";
GT_LanguageManager.addStringLocalization(
GT_MachineRecipeLoader.aTextTCGTPage + tKey,
"You have discovered a way of making charcoal magically instead of using regular ovens for this purpose.<BR><BR>To create charcoal from wood you first need an air-free environment, some vacuus essentia is needed for that, then you need to incinerate the wood using ignis essentia and wait until all the water inside the wood is burned away.<BR><BR>This method however doesn't create creosote oil as byproduct.");
GregTech_API.sThaumcraftCompat.addResearch(
tKey,
"Charcoal Transmutation",
"Turning wood into charcoal",
new String[] { "ALUMENTUM" },
"ALCHEMY",
GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Charcoal, 1L),
2,
0,
13,
5,
Arrays.asList(
new TC_Aspects.TC_AspectStack(TC_Aspects.ARBOR, 10L),
new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 8L),
new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 8L)),
null,
new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey,
GregTech_API.sThaumcraftCompat.addCrucibleRecipe(
tKey,
OrePrefixes.log.get(Materials.Wood),
GT_OreDictUnificator.get(OrePrefixes.gem, Materials.Charcoal, 1L),
Arrays.asList(
new TC_Aspects.TC_AspectStack(TC_Aspects.VACUOS, 2L),
new TC_Aspects.TC_AspectStack(TC_Aspects.IGNIS, 1L))) });
tKey = "GT_FILL_WATER_BUCKET";
GT_LanguageManager.addStringLocalization(
GT_MachineRecipeLoader.aTextTCGTPage + tKey,
"You have discovered a way of filling a bucket with aqua essentia in order to simply get water.");
GregTech_API.sThaumcraftCompat.addResearch(
tKey,
"Water Transmutation",
"Filling buckets with water",
null,
"ALCHEMY",
GT_OreDictUnificator.get(OrePrefixes.bucket, Materials.Water, 1L),
2,
0,
16,
5,
Arrays.asList(
new TC_Aspects.TC_AspectStack(TC_Aspects.PERMUTATIO, 4L),
new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 4L)),
null,
new Object[] { GT_MachineRecipeLoader.aTextTCGTPage + tKey,
GregTech_API.sThaumcraftCompat.addCrucibleRecipe(
tKey,
GT_OreDictUnificator.get(OrePrefixes.bucket, Materials.Empty, 1L),
GT_OreDictUnificator.get(OrePrefixes.bucket, Materials.Water, 1L),
Collections.singletonList(new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 4L))),
GregTech_API.sThaumcraftCompat.addCrucibleRecipe(
tKey,
GT_OreDictUnificator.get(OrePrefixes.bucketClay, Materials.Empty, 1L),
GT_OreDictUnificator.get(OrePrefixes.bucketClay, Materials.Water, 1L),
Collections.singletonList(new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 4L))),
GregTech_API.sThaumcraftCompat.addCrucibleRecipe(
tKey,
GT_OreDictUnificator.get(OrePrefixes.capsule, Materials.Empty, 1L),
GT_OreDictUnificator.get(OrePrefixes.capsule, Materials.Water, 1L),
Collections.singletonList(new TC_Aspects.TC_AspectStack(TC_Aspects.AQUA, 4L))),
GregTech_API.sThaumcraftCompat.addCrucibleRecipe(
tKey,
GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Empty, 1L),
GT_OreDictUnificator.