package biomesoplenty; import net.minecraft.creativetab.CreativeTabs; import net.minecraftforge.common.DimensionManager; import biomesoplenty.common.configuration.BOPConfiguration; import biomesoplenty.common.configuration.BOPConfigurationBiomeGen; import biomesoplenty.common.configuration.BOPConfigurationIDs; import biomesoplenty.common.configuration.BOPConfigurationWorldFeatures; import biomesoplenty.common.configuration.structures.BOPConfigurationStrongholds; import biomesoplenty.common.configuration.structures.BOPConfigurationVillages; import biomesoplenty.common.core.BOPArmor; import biomesoplenty.common.core.BOPBiomes; import biomesoplenty.common.core.BOPBlocks; import biomesoplenty.common.core.BOPCrafting; import biomesoplenty.common.core.BOPEntities; import biomesoplenty.common.core.BOPFluids; import biomesoplenty.common.core.BOPItems; import biomesoplenty.common.core.BOPPackets; import biomesoplenty.common.core.BOPPotions; import biomesoplenty.common.core.BOPVanillaCompat; import biomesoplenty.common.eventhandler.BOPEventHandlers; import biomesoplenty.common.helpers.CreativeTabsBOP; import biomesoplenty.common.integration.TreecapitatorIntegration; import biomesoplenty.common.network.PacketPipeline; import biomesoplenty.common.utils.BOPModInfo; import biomesoplenty.common.world.WorldProviderBopHell; import biomesoplenty.common.world.WorldProviderPromised; import biomesoplenty.common.world.WorldTypeBOP; import biomesoplenty.common.world.decoration.ForcedDecorators; import biomesoplenty.common.world.generation.ForcedBOPWorldGenerators; import biomesoplenty.common.world.generation.WorldGenFieldAssociation; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; 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,)") public class BiomesOPlenty { @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(); BOPFluids.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(); DimensionManager.unregisterProviderType(-1); DimensionManager.registerProviderType(-1, WorldProviderBopHell.class, true); //DimensionManager.registerProviderType(BOPConfigurationIDs.promisedLandDimID, WorldProviderPromised.class, false); //DimensionManager.registerDimension(BOPConfigurationIDs.promisedLandDimID, BOPConfigurationIDs.promisedLandDimID); } @EventHandler public void postInit(FMLPostInitializationEvent event) { packetPipeline.postInitialize(); BOPBiomes.worldTypeBOP = new WorldTypeBOP(); } }