2013-05-03 13:00:44 +00:00
|
|
|
package biomesoplenty;
|
|
|
|
|
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;
|
2014-01-15 22:37:29 +00:00
|
|
|
import biomesoplenty.common.configuration.BOPConfigurationWorldFeatures;
|
2014-01-16 07:51:31 +00:00
|
|
|
import biomesoplenty.common.configuration.structures.BOPConfigurationStrongholds;
|
2014-01-16 04:49:40 +00:00
|
|
|
import biomesoplenty.common.configuration.structures.BOPConfigurationVillages;
|
2014-03-17 09:16:21 +00:00
|
|
|
import biomesoplenty.common.core.*;
|
2014-01-14 04:11:49 +00:00
|
|
|
import biomesoplenty.common.eventhandler.BOPEventHandlers;
|
2013-12-24 04:28:03 +00:00
|
|
|
import biomesoplenty.common.helpers.CreativeTabsBOP;
|
2014-01-18 06:19:42 +00:00
|
|
|
import biomesoplenty.common.integration.TreecapitatorIntegration;
|
2014-01-24 10:48:58 +00:00
|
|
|
import biomesoplenty.common.network.PacketPipeline;
|
2013-12-29 07:50:09 +00:00
|
|
|
import biomesoplenty.common.utils.BOPModInfo;
|
2013-12-24 12:19:23 +00:00
|
|
|
import biomesoplenty.common.world.WorldTypeBOP;
|
2014-03-20 02:46:02 +00:00
|
|
|
import biomesoplenty.common.world.decoration.BiomeTweaker;
|
2013-05-03 13:00:44 +00:00
|
|
|
import cpw.mods.fml.common.Mod;
|
2013-07-02 03:57:49 +00:00
|
|
|
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;
|
2014-03-17 09:16:21 +00:00
|
|
|
import net.minecraft.creativetab.CreativeTabs;
|
2013-05-03 13:00:44 +00:00
|
|
|
|
2014-01-18 06:19:42 +00:00
|
|
|
@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
|
|
|
{
|
2014-01-18 06:19:42 +00:00
|
|
|
@Instance("BiomesOPlenty")
|
|
|
|
public static BiomesOPlenty instance;
|
|
|
|
|
|
|
|
@SidedProxy(clientSide = "biomesoplenty.ClientProxy", serverSide = "biomesoplenty.CommonProxy")
|
2014-01-24 10:48:58 +00:00
|
|
|
public static CommonProxy proxy;
|
2014-01-18 06:19:42 +00:00
|
|
|
|
2014-01-24 10:48:58 +00:00
|
|
|
public static final PacketPipeline packetPipeline = new PacketPipeline();
|
|
|
|
|
|
|
|
public static CreativeTabs tabBiomesOPlenty;
|
|
|
|
public static String configPath;
|
2014-01-18 06:19:42 +00:00
|
|
|
|
|
|
|
@EventHandler
|
|
|
|
public void preInit(FMLPreInitializationEvent event)
|
|
|
|
{
|
|
|
|
configPath = event.getModConfigurationDirectory() + "/biomesoplenty/";
|
|
|
|
BOPConfiguration.init(configPath);
|
|
|
|
|
|
|
|
//Version.check();
|
|
|
|
|
|
|
|
tabBiomesOPlenty = new CreativeTabsBOP(CreativeTabs.getNextID(), "tabBiomesOPlenty");
|
|
|
|
|
2014-01-24 10:48:58 +00:00
|
|
|
BOPPackets.init();
|
2014-01-18 06:19:42 +00:00
|
|
|
BOPPotions.init();
|
|
|
|
BOPBlocks.init();
|
|
|
|
BOPItems.init();
|
2014-01-30 06:04:09 +00:00
|
|
|
BOPFluids.init();
|
2014-01-18 06:19:42 +00:00
|
|
|
BOPArmor.init();
|
|
|
|
BOPCrafting.init();
|
2014-03-20 02:46:02 +00:00
|
|
|
BOPBiomes.init();
|
2014-01-18 06:19:42 +00:00
|
|
|
BOPConfigurationVillages.init(BOPConfiguration.villagesConfigFile);
|
|
|
|
BOPConfigurationStrongholds.init(BOPConfiguration.strongholdsConfigFile);
|
|
|
|
BOPConfigurationWorldFeatures.init(BOPConfiguration.worldFeaturesConfigFile);
|
2014-03-20 02:46:02 +00:00
|
|
|
BiomeTweaker.init();
|
2014-01-18 06:19:42 +00:00
|
|
|
BOPEntities.init();
|
|
|
|
BOPVanillaCompat.init();
|
|
|
|
|
|
|
|
BOPEventHandlers.init();
|
|
|
|
|
|
|
|
proxy.registerRenderers();
|
|
|
|
}
|
|
|
|
|
|
|
|
@EventHandler
|
|
|
|
public void load(FMLInitializationEvent event)
|
|
|
|
{
|
2014-02-10 19:17:07 +00:00
|
|
|
packetPipeline.initialize();
|
2014-01-24 10:48:58 +00:00
|
|
|
|
2014-01-18 06:19:42 +00:00
|
|
|
TreecapitatorIntegration.init();
|
2014-02-02 01:19:54 +00:00
|
|
|
|
|
|
|
BOPDimensions.init();
|
2014-01-18 06:19:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@EventHandler
|
|
|
|
public void postInit(FMLPostInitializationEvent event)
|
|
|
|
{
|
2014-01-24 10:48:58 +00:00
|
|
|
packetPipeline.postInitialize();
|
|
|
|
|
2014-03-20 02:46:02 +00:00
|
|
|
BOPBiomes.worldTypeBOP = new WorldTypeBOP();
|
2014-01-18 06:19:42 +00:00
|
|
|
}
|
2013-05-03 13:00:44 +00:00
|
|
|
}
|