2015-01-30 20:16:32 +01:00
|
|
|
package ellpeck.someprettyrandomstuff;
|
2014-11-10 16:47:04 +01:00
|
|
|
|
2015-02-17 16:15:16 +01:00
|
|
|
import cpw.mods.fml.common.Mod;
|
2015-02-20 22:45:33 +01:00
|
|
|
import cpw.mods.fml.common.Mod.EventHandler;
|
|
|
|
import cpw.mods.fml.common.Mod.Instance;
|
2015-02-17 16:15:16 +01:00
|
|
|
import cpw.mods.fml.common.SidedProxy;
|
|
|
|
import cpw.mods.fml.common.event.FMLInitializationEvent;
|
|
|
|
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
|
|
|
|
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
2015-02-09 17:25:05 +01:00
|
|
|
import ellpeck.someprettyrandomstuff.achievement.AchievementEvent;
|
|
|
|
import ellpeck.someprettyrandomstuff.achievement.InitAchievements;
|
2015-01-30 20:16:32 +01:00
|
|
|
import ellpeck.someprettyrandomstuff.blocks.InitBlocks;
|
2015-02-09 17:25:05 +01:00
|
|
|
import ellpeck.someprettyrandomstuff.config.ConfigurationHandler;
|
2015-01-30 20:16:32 +01:00
|
|
|
import ellpeck.someprettyrandomstuff.crafting.InitCrafting;
|
|
|
|
import ellpeck.someprettyrandomstuff.gen.OreGen;
|
|
|
|
import ellpeck.someprettyrandomstuff.inventory.GuiHandler;
|
|
|
|
import ellpeck.someprettyrandomstuff.items.InitItems;
|
2015-02-17 16:15:16 +01:00
|
|
|
import ellpeck.someprettyrandomstuff.material.InitItemMaterials;
|
2015-02-20 22:45:33 +01:00
|
|
|
import ellpeck.someprettyrandomstuff.network.PacketHandler;
|
2015-01-30 20:16:32 +01:00
|
|
|
import ellpeck.someprettyrandomstuff.proxy.IProxy;
|
|
|
|
import ellpeck.someprettyrandomstuff.tile.TileEntityBase;
|
|
|
|
import ellpeck.someprettyrandomstuff.util.Util;
|
2014-11-10 16:47:04 +01:00
|
|
|
|
2014-12-18 19:24:06 +01:00
|
|
|
@Mod(modid = Util.MOD_ID, name = Util.NAME, version = Util.VERSION)
|
2015-02-20 22:45:33 +01:00
|
|
|
public class SomePrettyRandomStuff{
|
2014-11-10 16:47:04 +01:00
|
|
|
|
2015-02-20 22:45:33 +01:00
|
|
|
@Instance(Util.MOD_ID)
|
|
|
|
public static SomePrettyRandomStuff instance;
|
2014-11-10 16:47:04 +01:00
|
|
|
|
2015-01-30 20:16:32 +01:00
|
|
|
@SidedProxy(clientSide = "ellpeck.someprettyrandomstuff.proxy.ClientProxy", serverSide = "ellpeck.someprettyrandomstuff.proxy.ServerProxy")
|
2014-12-03 21:55:53 +01:00
|
|
|
public static IProxy proxy;
|
|
|
|
|
2014-11-10 16:47:04 +01:00
|
|
|
@SuppressWarnings("unused")
|
2015-02-20 22:45:33 +01:00
|
|
|
@EventHandler()
|
2014-11-10 16:47:04 +01:00
|
|
|
public void preInit(FMLPreInitializationEvent event){
|
2015-02-09 17:25:05 +01:00
|
|
|
Util.logInfo("Starting PreInitialization Phase...");
|
|
|
|
|
2015-02-20 22:45:33 +01:00
|
|
|
PacketHandler.init();
|
2015-02-09 17:25:05 +01:00
|
|
|
ConfigurationHandler.init(event.getSuggestedConfigurationFile());
|
2015-02-17 16:15:16 +01:00
|
|
|
InitItemMaterials.init();
|
2014-11-10 16:47:04 +01:00
|
|
|
InitBlocks.init();
|
|
|
|
InitItems.init();
|
2014-12-03 21:55:53 +01:00
|
|
|
proxy.preInit();
|
2015-02-09 17:25:05 +01:00
|
|
|
|
|
|
|
Util.logInfo("PreInitialization Finished.");
|
2014-11-10 16:47:04 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@SuppressWarnings("unused")
|
2015-02-20 22:45:33 +01:00
|
|
|
@EventHandler()
|
2014-11-10 16:47:04 +01:00
|
|
|
public void init(FMLInitializationEvent event){
|
2015-02-09 17:25:05 +01:00
|
|
|
Util.logInfo("Starting Initialization Phase...");
|
|
|
|
|
|
|
|
InitAchievements.init();
|
2014-12-20 21:34:07 +01:00
|
|
|
InitCrafting.init();
|
2014-12-18 19:24:06 +01:00
|
|
|
GuiHandler.init();
|
|
|
|
OreGen.init();
|
|
|
|
TileEntityBase.init();
|
2015-02-09 17:25:05 +01:00
|
|
|
AchievementEvent.init();
|
2014-12-20 21:34:07 +01:00
|
|
|
proxy.init();
|
2015-02-09 17:25:05 +01:00
|
|
|
|
|
|
|
Util.logInfo("Initialization Finished.");
|
2014-11-10 16:47:04 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@SuppressWarnings("unused")
|
2015-02-20 22:45:33 +01:00
|
|
|
@EventHandler()
|
2014-11-10 16:47:04 +01:00
|
|
|
public void postInit(FMLPostInitializationEvent event){
|
2015-02-09 17:25:05 +01:00
|
|
|
Util.logInfo("Starting PostInitialization Phase...");
|
|
|
|
|
2014-12-03 21:55:53 +01:00
|
|
|
proxy.postInit();
|
2015-02-09 17:25:05 +01:00
|
|
|
|
|
|
|
Util.logInfo("PostInitialization Finished.");
|
2014-11-10 16:47:04 +01:00
|
|
|
}
|
|
|
|
}
|