aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/elisis/gtnhlanth/GTNHLanthanides.java
diff options
context:
space:
mode:
authorRaven Szewczyk <git@eigenraven.me>2024-05-25 15:39:05 +0100
committerRaven Szewczyk <git@eigenraven.me>2024-05-25 15:39:05 +0100
commitdb88561e8e21fb8b067bf5bf1a1753697d36ed29 (patch)
tree7a928f7502c46571b41dfa647151c253064cd5fb /src/main/java/com/elisis/gtnhlanth/GTNHLanthanides.java
parent9069e2aa47be7e6fb6ab1a2a29c5887ec2bfb2d7 (diff)
downloadGT5-Unofficial-db88561e8e21fb8b067bf5bf1a1753697d36ed29.tar.gz
GT5-Unofficial-db88561e8e21fb8b067bf5bf1a1753697d36ed29.tar.bz2
GT5-Unofficial-db88561e8e21fb8b067bf5bf1a1753697d36ed29.zip
Merge Lanthanides sources
Diffstat (limited to 'src/main/java/com/elisis/gtnhlanth/GTNHLanthanides.java')
-rw-r--r--src/main/java/com/elisis/gtnhlanth/GTNHLanthanides.java97
1 files changed, 97 insertions, 0 deletions
diff --git a/src/main/java/com/elisis/gtnhlanth/GTNHLanthanides.java b/src/main/java/com/elisis/gtnhlanth/GTNHLanthanides.java
new file mode 100644
index 0000000000..944e36d0bc
--- /dev/null
+++ b/src/main/java/com/elisis/gtnhlanth/GTNHLanthanides.java
@@ -0,0 +1,97 @@
+package com.elisis.gtnhlanth;
+
+import java.util.Arrays;
+import java.util.logging.Logger;
+
+import net.minecraftforge.oredict.OreDictionary;
+
+import com.elisis.gtnhlanth.common.CommonProxy;
+import com.elisis.gtnhlanth.common.register.BotWerkstoffMaterialPool;
+import com.elisis.gtnhlanth.common.register.LanthItemList;
+import com.elisis.gtnhlanth.common.register.WerkstoffMaterialPool;
+import com.elisis.gtnhlanth.loader.BotRecipes;
+import com.elisis.gtnhlanth.loader.RecipeLoader;
+import com.github.bartimaeusnek.bartworks.API.WerkstoffAdderRegistry;
+import com.github.bartimaeusnek.bartworks.system.material.Werkstoff;
+
+import cpw.mods.fml.common.Mod;
+import cpw.mods.fml.common.Mod.EventHandler;
+import cpw.mods.fml.common.SidedProxy;
+import cpw.mods.fml.common.event.FMLInitializationEvent;
+import cpw.mods.fml.common.event.FMLLoadCompleteEvent;
+import cpw.mods.fml.common.event.FMLPostInitializationEvent;
+import cpw.mods.fml.common.event.FMLPreInitializationEvent;
+import gregtech.api.enums.OrePrefixes;
+import gregtech.api.util.GT_Log;
+
+@Mod(
+ modid = Tags.MODID,
+ version = Tags.VERSION,
+ name = Tags.MODNAME,
+ dependencies = "required-after:IC2; " + "required-after:gregtech; "
+ + "required-after:bartworks; "
+ + "required-after:GoodGenerator; "
+ + "before:miscutils; ")
+public class GTNHLanthanides {
+
+ public static Logger LOG = Logger.getLogger("GTNH:Lanthanides");
+
+ @Mod.Instance
+ public static GTNHLanthanides instance;
+
+ @SidedProxy(
+ clientSide = "com.elisis.gtnhlanth.client.ClientProxy",
+ serverSide = "com.elisis.gtnhlanth.common.CommonProxy")
+ public static CommonProxy proxy;
+
+ @EventHandler
+ public static void preInit(FMLPreInitializationEvent e) {
+ WerkstoffAdderRegistry.addWerkstoffAdder(new WerkstoffMaterialPool());
+ WerkstoffAdderRegistry.addWerkstoffAdder(new BotWerkstoffMaterialPool());
+ LanthItemList.register();
+ // GregTech_API.sAfterGTPostload.add(new ZPMRubberChanges());
+ proxy.preInit(e);
+ }
+
+ @EventHandler
+ public static void init(FMLInitializationEvent e) {
+ proxy.init(e);
+ WerkstoffMaterialPool.runInit();
+ }
+
+ @EventHandler
+ public static void postInit(FMLPostInitializationEvent e) {
+ RecipeLoader.loadGeneral();
+ RecipeLoader.loadLanthanideRecipes();
+ RecipeLoader.addRandomChemCrafting();
+ BotRecipes.addGTRecipe();
+ // RecipeLoader.loadZylonRecipes();
+ proxy.postInit(e);
+ // GT_Log.out.print(FluidRegistry.getFluid("Sodium Tungstate").getName());
+
+ GT_Log.out.print(
+ Arrays.toString(
+ Werkstoff.werkstoffNameHashMap.keySet()
+ .toArray()));
+ GT_Log.out.print(
+ Arrays.toString(
+ Werkstoff.werkstoffHashMap.keySet()
+ .toArray()));
+
+ GT_Log.out.print(
+ "HMMM " + Arrays.toString(
+ OreDictionary
+ .getOreIDs(WerkstoffMaterialPool.DephosphatedSamariumConcentrate.get(OrePrefixes.dust, 1))));
+ }
+
+ @EventHandler
+ public static void onModLoadingComplete(FMLLoadCompleteEvent e) {
+ GT_Log.out.print("AAAAAAAAAAAAAA");
+ //
+ GT_Log.out.print("We are done loading");
+ BotRecipes.removeRecipes();
+ RecipeLoader.removeCeriumSources();
+
+ GT_Log.out.print("blah blah " + WerkstoffMaterialPool.PTMEGElastomer.hasGenerationFeature(OrePrefixes.ingot));
+ }
+}