ActuallyAdditions/src/main/java/ellpeck/someprettyrandomstuff/SomePrettyRandomStuff.java

74 lines
2.6 KiB
Java
Raw Normal View History

2015-01-30 20:16:32 +01:00
package ellpeck.someprettyrandomstuff;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.Mod.Instance;
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;
import ellpeck.someprettyrandomstuff.achievement.AchievementEvent;
import ellpeck.someprettyrandomstuff.achievement.InitAchievements;
2015-01-30 20:16:32 +01:00
import ellpeck.someprettyrandomstuff.blocks.InitBlocks;
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;
import ellpeck.someprettyrandomstuff.material.InitItemMaterials;
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-12-18 19:24:06 +01:00
@Mod(modid = Util.MOD_ID, name = Util.NAME, version = Util.VERSION)
public class SomePrettyRandomStuff{
@Instance(Util.MOD_ID)
public static SomePrettyRandomStuff instance;
2015-01-30 20:16:32 +01:00
@SidedProxy(clientSide = "ellpeck.someprettyrandomstuff.proxy.ClientProxy", serverSide = "ellpeck.someprettyrandomstuff.proxy.ServerProxy")
public static IProxy proxy;
@SuppressWarnings("unused")
@EventHandler()
public void preInit(FMLPreInitializationEvent event){
Util.logInfo("Starting PreInitialization Phase...");
PacketHandler.init();
ConfigurationHandler.init(event.getSuggestedConfigurationFile());
InitItemMaterials.init();
InitBlocks.init();
InitItems.init();
proxy.preInit();
Util.logInfo("PreInitialization Finished.");
}
@SuppressWarnings("unused")
@EventHandler()
public void init(FMLInitializationEvent event){
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();
AchievementEvent.init();
2014-12-20 21:34:07 +01:00
proxy.init();
Util.logInfo("Initialization Finished.");
}
@SuppressWarnings("unused")
@EventHandler()
public void postInit(FMLPostInitializationEvent event){
Util.logInfo("Starting PostInitialization Phase...");
proxy.postInit();
Util.logInfo("PostInitialization Finished.");
}
}