diff options
author | Draknyte1 <Draknyte1@hotmail.com> | 2017-08-09 18:13:54 +1000 |
---|---|---|
committer | Draknyte1 <Draknyte1@hotmail.com> | 2017-08-09 18:13:54 +1000 |
commit | f329a56cfc49be13de84523bee9990ee14597b62 (patch) | |
tree | 5c6b24987035a880749e4d62692d42cc7ab563cf /src/Java/gtPlusPlus/preloader/GTplusplus_Preloader.java | |
parent | d99058863bb4c717f6c63926d555811df48558af (diff) | |
download | GT5-Unofficial-f329a56cfc49be13de84523bee9990ee14597b62.tar.gz GT5-Unofficial-f329a56cfc49be13de84523bee9990ee14597b62.tar.bz2 GT5-Unofficial-f329a56cfc49be13de84523bee9990ee14597b62.zip |
% Rewrote the Preloader mod to now be a dummy mod.
+ Added ASM usage to Preloader.
+ MC Version annotations to both GT++ and it's child mod GT++ Dark world.
Diffstat (limited to 'src/Java/gtPlusPlus/preloader/GTplusplus_Preloader.java')
-rw-r--r-- | src/Java/gtPlusPlus/preloader/GTplusplus_Preloader.java | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/src/Java/gtPlusPlus/preloader/GTplusplus_Preloader.java b/src/Java/gtPlusPlus/preloader/GTplusplus_Preloader.java deleted file mode 100644 index 737038c84b..0000000000 --- a/src/Java/gtPlusPlus/preloader/GTplusplus_Preloader.java +++ /dev/null @@ -1,55 +0,0 @@ -package gtPlusPlus.preloader; - -import static gtPlusPlus.preloader.CORE_Preloader.*; - -import java.awt.event.ActionEvent; -import java.awt.event.ActionListener; -import java.io.File; - -import cpw.mods.fml.common.Mod; -import cpw.mods.fml.common.Mod.EventHandler; -import cpw.mods.fml.common.event.*; -import gtPlusPlus.core.util.Utils; -import net.minecraftforge.common.MinecraftForge; -import net.minecraftforge.common.config.Configuration; - -@Mod(modid = MODID, name = NAME, version = VERSION, dependencies = "required-before:gregtech;") -public class GTplusplus_Preloader implements ActionListener { - - @EventHandler - public void load(final FMLInitializationEvent e) { - Utils.LOG_INFO("Begin resource allocation for " + MODID + " V" + VERSION); - } - - // Pre-Init - @Mod.EventHandler - public void preInit(final FMLPreInitializationEvent event) { - Utils.LOG_INFO("Loading " + MODID + " V" + VERSION); - // Handle GT++ Config - handleConfigFile(event); - if (CORE_Preloader.enableOldGTcircuits) { - MinecraftForge.EVENT_BUS.register(new Preloader_GT_OreDict()); - } - } - - @EventHandler - public static void postInit(final FMLPostInitializationEvent e) { - Utils.LOG_INFO("Finished loading GT++ Pre-Loader."); - } - - @Override - public void actionPerformed(ActionEvent arg0) { - // TODO Auto-generated method stub - } - - public static void handleConfigFile(final FMLPreInitializationEvent event) { - final Configuration config = new Configuration( - new File(event.getModConfigurationDirectory(), "GTplusplus/GTplusplus.cfg")); - config.load(); - - // Circuits - CORE_Preloader.enableOldGTcircuits = config.getBoolean("enableOldGTcircuits", "gregtech", false, - "Restores circuits and their recipes from Pre-5.09.28 times."); - } - -} |