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;
|
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;
|
2013-12-28 08:26:40 +00:00
|
|
|
import biomesoplenty.common.core.BOPArmor;
|
2013-12-24 11:56:48 +00:00
|
|
|
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;
|
2013-12-28 09:41:22 +00:00
|
|
|
import biomesoplenty.common.core.BOPPotions;
|
2013-12-29 08:59:52 +00:00
|
|
|
import biomesoplenty.common.core.BOPVanillaCompat;
|
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;
|
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-01-03 09:12:06 +00:00
|
|
|
import biomesoplenty.common.world.decoration.ForcedDecorators;
|
2014-01-06 13:26:39 +00:00
|
|
|
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;
|
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;
|
|
|
|
|
2013-12-24 04:54:03 +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
|
|
|
{
|
2013-05-03 13:00:44 +00:00
|
|
|
@Instance("BiomesOPlenty")
|
|
|
|
public static BiomesOPlenty instance;
|
|
|
|
|
|
|
|
@SidedProxy(clientSide="biomesoplenty.ClientProxy", serverSide="biomesoplenty.CommonProxy")
|
|
|
|
public static CommonProxy proxy;
|
|
|
|
|
|
|
|
public static CreativeTabs tabBiomesOPlenty;
|
2013-08-03 00:07:43 +00:00
|
|
|
public static String configPath;
|
2013-05-03 13:00:44 +00:00
|
|
|
|
2013-07-02 07:43:39 +00:00
|
|
|
@EventHandler
|
2013-05-03 13:00:44 +00:00
|
|
|
public void preInit(FMLPreInitializationEvent event)
|
2014-01-15 22:37:29 +00:00
|
|
|
{
|
2013-08-03 00:07:43 +00:00
|
|
|
configPath = event.getModConfigurationDirectory() + "/biomesoplenty/";
|
|
|
|
BOPConfiguration.init(configPath);
|
2013-06-14 13:17:48 +00:00
|
|
|
|
2013-12-23 11:21:39 +00:00
|
|
|
//Version.check();
|
2013-05-31 10:34:02 +00:00
|
|
|
|
2013-12-24 00:01:55 +00:00
|
|
|
tabBiomesOPlenty = new CreativeTabsBOP(CreativeTabs.getNextID(), "tabBiomesOPlenty");
|
2013-05-31 10:34:02 +00:00
|
|
|
|
2013-12-28 09:41:22 +00:00
|
|
|
BOPPotions.init();
|
2013-05-03 13:00:44 +00:00
|
|
|
BOPBlocks.init();
|
|
|
|
BOPItems.init();
|
2013-12-28 08:26:40 +00:00
|
|
|
BOPArmor.init();
|
2013-12-29 02:40:19 +00:00
|
|
|
BOPCrafting.init();
|
2013-12-24 11:56:48 +00:00
|
|
|
BOPBiomes.init();
|
2014-01-16 09:46:37 +00:00
|
|
|
BOPConfigurationBiomeGen.init(BOPConfiguration.biomeGenConfigFile);
|
2014-01-16 04:49:40 +00:00
|
|
|
BOPConfigurationVillages.init(BOPConfiguration.villagesConfigFile);
|
2014-01-16 07:51:31 +00:00
|
|
|
BOPConfigurationStrongholds.init(BOPConfiguration.strongholdsConfigFile);
|
2014-01-03 09:12:06 +00:00
|
|
|
WorldGenFieldAssociation.init();
|
2014-01-15 22:37:29 +00:00
|
|
|
BOPConfigurationWorldFeatures.init(BOPConfiguration.worldFeaturesConfigFile);
|
2014-01-06 13:26:39 +00:00
|
|
|
ForcedBOPWorldGenerators.init();
|
2014-01-03 09:12:06 +00:00
|
|
|
ForcedDecorators.init();
|
2013-12-24 01:21:58 +00:00
|
|
|
BOPEntities.init();
|
2013-12-29 08:59:52 +00:00
|
|
|
BOPVanillaCompat.init();
|
2013-12-24 01:21:58 +00:00
|
|
|
|
2014-01-14 04:11:49 +00:00
|
|
|
BOPEventHandlers.init();
|
2013-12-28 09:41:22 +00:00
|
|
|
|
2013-12-24 01:21:58 +00:00
|
|
|
proxy.registerRenderers();
|
2013-05-03 13:00:44 +00:00
|
|
|
}
|
|
|
|
|
2013-07-02 07:43:39 +00:00
|
|
|
@EventHandler
|
2013-05-03 13:00:44 +00:00
|
|
|
public void load(FMLInitializationEvent event)
|
|
|
|
{
|
2013-12-27 05:36:50 +00:00
|
|
|
|
2013-05-03 13:00:44 +00:00
|
|
|
}
|
2013-05-06 07:11:55 +00:00
|
|
|
|
2013-07-02 07:43:39 +00:00
|
|
|
@EventHandler
|
2013-05-03 13:00:44 +00:00
|
|
|
public void postInit(FMLPostInitializationEvent event)
|
|
|
|
{
|
2013-12-24 12:19:23 +00:00
|
|
|
BOPBiomes.worldTypeBOP = new WorldTypeBOP();
|
2013-05-03 13:00:44 +00:00
|
|
|
}
|
|
|
|
}
|