2015-01-11 21:59:45 +02:00
|
|
|
package modtweaker;
|
|
|
|
|
|
2015-01-20 20:23:47 +02:00
|
|
|
import java.io.File;
|
|
|
|
|
|
2015-02-14 19:11:37 +02:00
|
|
|
import modtweaker.mods.appeng.AppliedEnergistics;
|
2015-01-11 21:59:45 +02:00
|
|
|
import modtweaker.mods.botania.Botania;
|
2015-01-23 13:08:15 -06:00
|
|
|
import modtweaker.mods.chisel.Chisel;
|
2015-01-11 21:59:45 +02:00
|
|
|
import modtweaker.mods.exnihilo.ExNihilo;
|
|
|
|
|
import modtweaker.mods.extendedworkbench.ExtendedWorkbench;
|
|
|
|
|
import modtweaker.mods.factorization.Factorization;
|
2015-01-14 20:50:51 +02:00
|
|
|
import modtweaker.mods.forestry.Forestry;
|
2015-01-11 21:59:45 +02:00
|
|
|
import modtweaker.mods.fsp.Steamcraft;
|
2015-01-14 20:50:51 +02:00
|
|
|
import modtweaker.mods.hee.HardcoreEnderExpansion;
|
2015-01-20 18:07:46 +02:00
|
|
|
import modtweaker.mods.imc.handler.Message;
|
2015-01-11 21:59:45 +02:00
|
|
|
import modtweaker.mods.mariculture.Mariculture;
|
|
|
|
|
import modtweaker.mods.mekanism.Mekanism;
|
|
|
|
|
import modtweaker.mods.metallurgy.Metallurgy;
|
|
|
|
|
import modtweaker.mods.pneumaticcraft.PneumaticCraft;
|
|
|
|
|
import modtweaker.mods.railcraft.Railcraft;
|
|
|
|
|
import modtweaker.mods.tconstruct.TConstruct;
|
|
|
|
|
import modtweaker.mods.thaumcraft.Thaumcraft;
|
|
|
|
|
import modtweaker.mods.thermalexpansion.ThermalExpansion;
|
|
|
|
|
import modtweaker.util.TweakerPlugin;
|
|
|
|
|
import net.minecraftforge.common.MinecraftForge;
|
|
|
|
|
import cpw.mods.fml.common.FMLCommonHandler;
|
|
|
|
|
import cpw.mods.fml.common.Mod;
|
|
|
|
|
import cpw.mods.fml.common.Mod.EventHandler;
|
|
|
|
|
import cpw.mods.fml.common.event.FMLInitializationEvent;
|
2015-01-20 18:07:46 +02:00
|
|
|
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
2015-01-11 21:59:45 +02:00
|
|
|
import cpw.mods.fml.common.event.FMLServerStartingEvent;
|
|
|
|
|
import cpw.mods.fml.relauncher.Side;
|
|
|
|
|
|
|
|
|
|
@Mod(modid = ModProps.modid, name = ModProps.name, dependencies = ModProps.dependencies)
|
|
|
|
|
public class ModTweaker {
|
2015-01-20 20:23:47 +02:00
|
|
|
|
2015-01-20 18:07:46 +02:00
|
|
|
@EventHandler
|
2015-01-20 20:23:47 +02:00
|
|
|
public void preInit(FMLPreInitializationEvent event) {
|
|
|
|
|
File file = new File("scripts");
|
|
|
|
|
|
|
|
|
|
if (!file.exists()) {
|
|
|
|
|
file.mkdir();
|
|
|
|
|
}
|
|
|
|
|
new Message(file.getPath());
|
2015-01-20 18:07:46 +02:00
|
|
|
}
|
2015-01-20 20:23:47 +02:00
|
|
|
|
2015-01-11 21:59:45 +02:00
|
|
|
@EventHandler
|
|
|
|
|
public void init(FMLInitializationEvent event) {
|
|
|
|
|
TweakerPlugin.register("Botania", Botania.class);
|
|
|
|
|
TweakerPlugin.register("exnihilo", ExNihilo.class);
|
|
|
|
|
TweakerPlugin.register("extendedWorkbench", ExtendedWorkbench.class);
|
|
|
|
|
TweakerPlugin.register("factorization", Factorization.class);
|
2015-01-14 20:50:51 +02:00
|
|
|
TweakerPlugin.register("HardcoreEnderExpansion", HardcoreEnderExpansion.class);
|
2015-01-11 21:59:45 +02:00
|
|
|
TweakerPlugin.register("Mariculture", Mariculture.class);
|
|
|
|
|
TweakerPlugin.register("Mekanism", Mekanism.class);
|
|
|
|
|
TweakerPlugin.register("Metallurgy", Metallurgy.class);
|
|
|
|
|
TweakerPlugin.register("PneumaticCraft", PneumaticCraft.class);
|
|
|
|
|
TweakerPlugin.register("Railcraft", Railcraft.class);
|
|
|
|
|
TweakerPlugin.register("Steamcraft", Steamcraft.class);
|
|
|
|
|
TweakerPlugin.register("TConstruct", TConstruct.class);
|
|
|
|
|
TweakerPlugin.register("Thaumcraft", Thaumcraft.class);
|
|
|
|
|
TweakerPlugin.register("ThermalExpansion", ThermalExpansion.class);
|
2015-01-14 20:50:51 +02:00
|
|
|
TweakerPlugin.register("Forestry", Forestry.class);
|
2015-01-23 13:08:15 -06:00
|
|
|
TweakerPlugin.register("chisel", Chisel.class);
|
2015-02-14 19:11:37 +02:00
|
|
|
TweakerPlugin.register("appliedenergistics2-core", AppliedEnergistics.class);
|
|
|
|
|
|
2015-01-20 20:23:47 +02:00
|
|
|
|
2015-01-11 21:59:45 +02:00
|
|
|
if (FMLCommonHandler.instance().getSide() == Side.CLIENT) {
|
|
|
|
|
MinecraftForge.EVENT_BUS.register(new ClientEvents());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@EventHandler
|
|
|
|
|
public void onServerStart(FMLServerStartingEvent event) {
|
2015-01-23 22:04:02 -06:00
|
|
|
Commands.registerCommands();
|
2015-01-11 21:59:45 +02:00
|
|
|
}
|
|
|
|
|
}
|