2015-01-30 20:16:32 +01:00
|
|
|
package ellpeck.someprettyrandomstuff;
|
2014-11-10 16:47:04 +01:00
|
|
|
|
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;
|
|
|
|
import ellpeck.someprettyrandomstuff.proxy.IProxy;
|
|
|
|
import ellpeck.someprettyrandomstuff.tile.TileEntityBase;
|
|
|
|
import ellpeck.someprettyrandomstuff.util.Util;
|
2015-02-09 17:25:05 +01:00
|
|
|
import net.minecraftforge.fml.common.Mod;
|
|
|
|
import net.minecraftforge.fml.common.SidedProxy;
|
|
|
|
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
|
|
|
|
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
|
|
|
|
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
|
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-09 17:25:05 +01:00
|
|
|
public class SPRS{
|
2014-11-10 16:47:04 +01:00
|
|
|
|
2015-02-09 17:25:05 +01:00
|
|
|
@Mod.Instance(Util.MOD_ID)
|
|
|
|
public static SPRS 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-09 17:25:05 +01:00
|
|
|
@Mod.EventHandler()
|
2014-11-10 16:47:04 +01:00
|
|
|
public void preInit(FMLPreInitializationEvent event){
|
2015-02-09 17:25:05 +01:00
|
|
|
Util.logInfo(Util.isClientSide() ? "You're on a Client, eh?" : "You're on a Server, eh?");
|
|
|
|
Util.logInfo("Starting PreInitialization Phase...");
|
|
|
|
|
|
|
|
ConfigurationHandler.init(event.getSuggestedConfigurationFile());
|
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-09 17:25:05 +01:00
|
|
|
@Mod.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-09 17:25:05 +01:00
|
|
|
@Mod.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
|
|
|
}
|
|
|
|
}
|