BiomesOPlenty/src/main/java/biomesoplenty/BiomesOPlenty.java

96 lines
3.7 KiB
Java
Raw Normal View History

2013-05-03 13:00:44 +00:00
package biomesoplenty;
import net.minecraft.creativetab.CreativeTabs;
2013-12-24 04:28:03 +00:00
import biomesoplenty.common.configuration.BOPConfiguration;
2014-01-16 09:46:37 +00:00
import biomesoplenty.common.configuration.BOPConfigurationBiomeGen;
import biomesoplenty.common.configuration.BOPConfigurationWorldFeatures;
import biomesoplenty.common.configuration.structures.BOPConfigurationStrongholds;
import biomesoplenty.common.configuration.structures.BOPConfigurationVillages;
2013-12-28 08:26:40 +00:00
import biomesoplenty.common.core.BOPArmor;
import biomesoplenty.common.core.BOPBiomes;
2013-12-24 04:28:03 +00:00
import biomesoplenty.common.core.BOPBlocks;
2013-12-29 02:40:19 +00:00
import biomesoplenty.common.core.BOPCrafting;
2013-12-24 04:28:03 +00:00
import biomesoplenty.common.core.BOPEntities;
import biomesoplenty.common.core.BOPItems;
import biomesoplenty.common.core.BOPPackets;
2013-12-28 09:41:22 +00:00
import biomesoplenty.common.core.BOPPotions;
import biomesoplenty.common.core.BOPVanillaCompat;
import biomesoplenty.common.eventhandler.BOPEventHandlers;
2013-12-24 04:28:03 +00:00
import biomesoplenty.common.helpers.CreativeTabsBOP;
import biomesoplenty.common.integration.TreecapitatorIntegration;
import biomesoplenty.common.network.PacketPipeline;
import biomesoplenty.common.utils.BOPModInfo;
2013-12-24 12:19:23 +00:00
import biomesoplenty.common.world.WorldTypeBOP;
2014-01-03 09:12:06 +00:00
import biomesoplenty.common.world.decoration.ForcedDecorators;
import biomesoplenty.common.world.generation.ForcedBOPWorldGenerators;
import biomesoplenty.common.world.generation.WorldGenFieldAssociation;
2013-05-03 13:00:44 +00:00
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
2013-05-03 13:00:44 +00:00
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;
@Mod(modid = BOPModInfo.modID, name = BOPModInfo.modName, dependencies = "after:Natura; required-after:Forge@[1.42.666.42.1,)")
2013-05-03 13:00:44 +00:00
public class BiomesOPlenty
2013-05-31 10:34:02 +00:00
{
@Instance("BiomesOPlenty")
public static BiomesOPlenty instance;
@SidedProxy(clientSide = "biomesoplenty.ClientProxy", serverSide = "biomesoplenty.CommonProxy")
public static CommonProxy proxy;
public static final PacketPipeline packetPipeline = new PacketPipeline();
public static CreativeTabs tabBiomesOPlenty;
public static String configPath;
@EventHandler
public void preInit(FMLPreInitializationEvent event)
{
configPath = event.getModConfigurationDirectory() + "/biomesoplenty/";
BOPConfiguration.init(configPath);
//Version.check();
tabBiomesOPlenty = new CreativeTabsBOP(CreativeTabs.getNextID(), "tabBiomesOPlenty");
BOPPackets.init();
BOPPotions.init();
BOPBlocks.init();
BOPItems.init();
BOPArmor.init();
BOPCrafting.init();
BOPBiomes.init();
BOPConfigurationBiomeGen.init(BOPConfiguration.biomeGenConfigFile);
BOPConfigurationVillages.init(BOPConfiguration.villagesConfigFile);
BOPConfigurationStrongholds.init(BOPConfiguration.strongholdsConfigFile);
WorldGenFieldAssociation.init();
BOPConfigurationWorldFeatures.init(BOPConfiguration.worldFeaturesConfigFile);
ForcedBOPWorldGenerators.init();
ForcedDecorators.init();
BOPEntities.init();
BOPVanillaCompat.init();
BOPEventHandlers.init();
proxy.registerRenderers();
}
@EventHandler
public void load(FMLInitializationEvent event)
{
packetPipeline.initalize();
TreecapitatorIntegration.init();
}
@EventHandler
public void postInit(FMLPostInitializationEvent event)
{
packetPipeline.postInitialize();
BOPBiomes.worldTypeBOP = new WorldTypeBOP();
}
2013-05-03 13:00:44 +00:00
}