2014-11-10 16:47:04 +01:00
|
|
|
package ellpeck.thingycraft;
|
|
|
|
|
|
|
|
import cpw.mods.fml.common.Mod;
|
|
|
|
import cpw.mods.fml.common.Mod.*;
|
2014-12-03 21:55:53 +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;
|
|
|
|
import cpw.mods.fml.common.network.NetworkRegistry;
|
2014-11-10 16:47:04 +01:00
|
|
|
import cpw.mods.fml.common.registry.GameRegistry;
|
|
|
|
import ellpeck.thingycraft.blocks.InitBlocks;
|
2014-12-03 21:55:53 +01:00
|
|
|
import ellpeck.thingycraft.container.GuiHandler;
|
|
|
|
import ellpeck.thingycraft.crafting.CrucibleCraftingManager;
|
2014-11-10 16:47:04 +01:00
|
|
|
import ellpeck.thingycraft.items.InitItems;
|
2014-12-03 21:55:53 +01:00
|
|
|
import ellpeck.thingycraft.proxy.IProxy;
|
|
|
|
import ellpeck.thingycraft.tile.TileEntityCrucible;
|
2014-11-10 16:47:04 +01:00
|
|
|
|
|
|
|
@Mod(modid = ThingyCraft.MOD_ID, name = ThingyCraft.NAME, version = ThingyCraft.VERSION)
|
|
|
|
public class ThingyCraft {
|
|
|
|
|
|
|
|
@Instance(ThingyCraft.MOD_ID)
|
|
|
|
public static ThingyCraft instance;
|
|
|
|
|
2014-12-03 21:55:53 +01:00
|
|
|
@SidedProxy(clientSide = "ellpeck.thingycraft.proxy.ClientProxy", serverSide = "ellpeck.thingycraft.proxy.ServerProxy")
|
|
|
|
public static IProxy proxy;
|
|
|
|
|
2014-11-10 16:47:04 +01:00
|
|
|
public static final String MOD_ID = "thingycraft";
|
|
|
|
public static final String NAME = "ThingyCraft";
|
2014-12-03 21:55:53 +01:00
|
|
|
public static final String VERSION = "1.7.10-1.0.1";
|
|
|
|
|
|
|
|
public static final int guiCrucible = 0;
|
2014-11-10 16:47:04 +01:00
|
|
|
|
|
|
|
@SuppressWarnings("unused")
|
|
|
|
@EventHandler()
|
|
|
|
public void preInit(FMLPreInitializationEvent event){
|
|
|
|
InitBlocks.init();
|
|
|
|
InitItems.init();
|
2014-12-03 21:55:53 +01:00
|
|
|
proxy.preInit();
|
2014-11-10 16:47:04 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@SuppressWarnings("unused")
|
|
|
|
@EventHandler()
|
|
|
|
public void init(FMLInitializationEvent event){
|
2014-12-03 21:55:53 +01:00
|
|
|
CrucibleCraftingManager.instance.initRecipes();
|
|
|
|
proxy.init();
|
|
|
|
NetworkRegistry.INSTANCE.registerGuiHandler(instance, new GuiHandler());
|
2014-11-10 16:47:04 +01:00
|
|
|
GameRegistry.registerWorldGenerator(new OreGen(), 0);
|
2014-12-03 21:55:53 +01:00
|
|
|
GameRegistry.registerTileEntity(TileEntityCrucible.class, ThingyCraft.MOD_ID + "tileEntityCrucible");
|
2014-11-10 16:47:04 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@SuppressWarnings("unused")
|
|
|
|
@EventHandler()
|
|
|
|
public void postInit(FMLPostInitializationEvent event){
|
2014-12-03 21:55:53 +01:00
|
|
|
proxy.postInit();
|
2014-11-10 16:47:04 +01:00
|
|
|
}
|
|
|
|
}
|