@@ -0,0 +1,1736 @@
+package org.pfaa.geologica.integration;%0A%0Aimport java.util.HashSet;%0Aimport java.util.List;%0Aimport java.util.Set;%0A%0Aimport net.minecraft.block.Block;%0Aimport net.minecraft.item.ItemStack;%0A%0Aimport org.pfaa.geologica.GeologicaBlocks;%0A%0Aimport tconstruct.library.TConstructRegistry;%0Aimport tconstruct.library.tools.ToolMaterial;%0A%0Apublic class TCIntegration %7B%0A%09private static final int STONE_ID = 1;%0A%09private static final int STONE_HARVEST_LEVEL = 1;%0A%09%0A%09public static void addStoneMaterials() %7B%0A%09%09addStoneMaterial(50, GeologicaBlocks.WEAK_STONE, 0.25, 0.5);%0A%09%09addStoneMaterial(51, GeologicaBlocks.MEDIUM_STONE, 0.50, 0.8);%0A%09%09addStoneMaterial(52, GeologicaBlocks.STRONG_STONE, 1.0, 1.0);%0A%09%09addStoneMaterial(53, GeologicaBlocks.VERY_STRONG_STONE, 1.5, 1.2);%0A%09%7D%0A%09%0A%09public static void addStoneMaterial(int materialID, Block stone, double durabilityMultiplier, double speedMultiplier) %7B%0A%09%09ToolMaterial baseStone = TConstructRegistry.getMaterial(STONE_ID);%0A%09%09TConstructRegistry.addToolMaterial(materialID, %0A%09%09%09%09stone.getUnlocalizedName(), STONE_HARVEST_LEVEL, %0A%09%09%09%09(int)(baseStone.durability * durabilityMultiplier), %0A%09%09%09%09(int)(baseStone.miningspeed * speedMultiplier), %0A%09%09%09%09baseStone.attack, baseStone.handleModifier, %0A%09%09%09%090 /* reinforced */, 1 /* stonebound */, %0A%09%09%09%09baseStone.style(), baseStone.ability);%0A%09%09Set%3CList%3CInteger%3E%3E patternKeys = new HashSet(TConstructRegistry.patternPartMapping.keySet());%0A%09%09for (List%3CInteger%3E key : patternKeys) %7B%0A%09%09%09int keyMaterialID = key.get(2);%0A%09%09%09if (keyMaterialID == STONE_ID) %7B%0A%09%09%09%09int patternID = key.get(0);%0A%09%09%09%09int patternMeta = key.get(1);%0A%09%09%09%09ItemStack output = TConstructRegistry.patternPartMapping.get(key);%0A%09%09%09%09TConstructRegistry.addPartMapping(patternID, patternMeta, materialID, output);%0A%09%09%09%7D%0A%09%09%7D%0A%09%7D%0A%7D%0A

add first, still broken attempt at TC integration