// Path: src/main/java/tonius/neiintegration/IntegrationBase.java
// public abstract class IntegrationBase {
//     
//     public abstract String getName();
//     
//     public boolean isEnabledByDefault() {
//         return true;
//     }
//     
//     public abstract boolean isValid();
//     
//     public abstract void loadConfig();
//     
//     protected void registerHandler(IRecipeHandler handler) {
//         handler.prepare();
//         API.registerRecipeHandler(handler);
//         API.registerUsageHandler(handler);
//     }
//     
// }
// 
// Path: src/main/java/tonius/neiintegration/NEIIntegration.java
// @Mod(modid = NEIIntegration.MODID, version = NEIIntegration.VERSION, acceptableRemoteVersions = NEIIntegration.ACCEPTABLE_REMOTE_VERSIONS, guiFactory = NEIIntegration.GUI_FACTORY)
// public class NEIIntegration {
//     
//     public static final String MODID = "neiintegration";
//     public static final String VERSION = "@VERSION@";
//     public static final String ACCEPTABLE_REMOTE_VERSIONS = "*";
//     public static final String GUI_FACTORY = "tonius.neiintegration.config.ConfigGuiFactory";
//     
//     @Instance(MODID)
//     public static NEIIntegration instance;
//     public static Logger log;
//     public static List<IntegrationBase> integrations;
//     
//     @EventHandler
//     public void preInit(FMLPreInitializationEvent evt) {
//         if (evt.getSide() != Side.CLIENT) {
//             return;
//         }
//         
//         log = evt.getModLog();
//         log.info("Starting NEI Integration");
//         
//         integrations = Integrations.getIntegrations();
//         Config.preInit(evt);
//     }
//     
// }


import java.io.File;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import net.minecraftforge.common.config.Configuration;
import tonius.neiintegration.IntegrationBase;
import tonius.neiintegration.NEIIntegration;
import cpw.mods.fml.client.event.ConfigChangedEvent.OnConfigChangedEvent;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
package tonius.neiintegration.config;



public class Config {
    
    public static Configuration config;
    public static List<Section> configSections = new ArrayList<Section>();
    
    public static final Section sectionIntegrations = new Section("Integrations", "integrations");
    public static final Section sectionHandlers = new Section("Handlers", "handlers");
    public static final Section sectionTooltips = new Section("Tooltips", "tooltips");
    
    // handlers
    public static boolean handlerFluidRegistry = Defaults.handlerFluidRegistry;
    public static boolean handlerOreDictionary = Defaults.handlerOreDictionary;
    
    // tooltips
    public static boolean tooltipUnlocalizedName = Defaults.tooltipUnlocalizedName;
    public static boolean tooltipUnlocalizedNameShift = Defaults.tooltipUnlocalizedNameShift;
    public static boolean tooltipUnlocalizedNameAdvanced = Defaults.tooltipUnlocalizedNameAdvanced;
    public static boolean tooltipInternalName = Defaults.tooltipInternalName;
    public static boolean tooltipInternalNameShift = Defaults.tooltipInternalNameShift;
    public static boolean tooltipInternalNameAdvanced = Defaults.tooltipInternalNameAdvanced;
    public static boolean tooltipMaxStack = Defaults.tooltipMaxStack;
    public static boolean tooltipMaxStackShift = Defaults.tooltipMaxStackShift;
    public static boolean tooltipMaxStackAdvanced = Defaults.tooltipMaxStackAdvanced;
    public static boolean tooltipBurnTime = Defaults.tooltipBurnTime;
    public static boolean tooltipBurnTimeShift = Defaults.tooltipBurnTimeShift;
    public static boolean tooltipBurnTimeAdvanced = Defaults.tooltipBurnTimeAdvanced;
    public static boolean tooltipOreDictNames = Defaults.tooltipOreDictNames;
    public static boolean tooltipOreDictNamesShift = Defaults.tooltipOreDictNamesShift;
    public static boolean tooltipOreDictNamesAdvanced = Defaults.tooltipOreDictNamesAdvanced;
    public static boolean tooltipFluidRegInfo = Defaults.tooltipFluidRegInfo;
    public static boolean tooltipFluidRegInfoShift = Defaults.tooltipFluidRegInfoShift;
    public static boolean tooltipFluidRegInfoAdvanced = Defaults.tooltipFluidRegInfoAdvanced;
    
    public static void preInit(FMLPreInitializationEvent evt) {
        FMLCommonHandler.instance().bus().register(new Config());
// Path: src/main/java/tonius/neiintegration/IntegrationBase.java
// public abstract class IntegrationBase {
//     
//     public abstract String getName();
//     
//     public boolean isEnabledByDefault() {
//         return true;
//     }
//     
//     public abstract boolean isValid();
//     
//     public abstract void loadConfig();
//     
//     protected void registerHandler(IRecipeHandler handler) {
//         handler.prepare();
//         API.registerRecipeHandler(handler);
//         API.registerUsageHandler(handler);
//     }
//     
// }
// 
// Path: src/main/java/tonius/neiintegration/NEIIntegration.java
// @Mod(modid = NEIIntegration.MODID, version = NEIIntegration.VERSION, acceptableRemoteVersions = NEIIntegration.ACCEPTABLE_REMOTE_VERSIONS, guiFactory = NEIIntegration.GUI_FACTORY)
// public class NEIIntegration {
//     
//     public static final String MODID = "neiintegration";
//     public static final String VERSION = "@VERSION@";
//     public static final String ACCEPTABLE_REMOTE_VERSIONS = "*";
//     public static final String GUI_FACTORY = "tonius.neiintegration.config.ConfigGuiFactory";
//     
//     @Instance(MODID)
//     public static NEIIntegration instance;
//     public static Logger log;
//     public static List<IntegrationBase> integrations;
//     
//     @EventHandler
//     public void preInit(FMLPreInitializationEvent evt) {
//         if (evt.getSide() != Side.CLIENT) {
//             return;
//         }
//         
//         log = evt.getModLog();
//         log.info("Starting NEI Integration");
//         
//         integrations = Integrations.getIntegrations();
//         Config.preInit(evt);
//     }
//     
// }


// Path: src/main/java/tonius/neiintegration/config/Config.java
import java.io.File;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import net.minecraftforge.common.config.Configuration;
import tonius.neiintegration.IntegrationBase;
import tonius.neiintegration.NEIIntegration;
import cpw.mods.fml.client.event.ConfigChangedEvent.OnConfigChangedEvent;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;

package tonius.neiintegration.config;



public class Config {
    
    public static Configuration config;
    public static List<Section> configSections = new ArrayList<Section>();
    
    public static final Section sectionIntegrations = new Section("Integrations", "integrations");
    public static final Section sectionHandlers = new Section("Handlers", "handlers");
    public static final Section sectionTooltips = new Section("Tooltips", "tooltips");
    
    // handlers
    public static boolean handlerFluidRegistry = Defaults.handlerFluidRegistry;
    public static boolean handlerOreDictionary = Defaults.handlerOreDictionary;
    
    // tooltips
    public static boolean tooltipUnlocalizedName = Defaults.tooltipUnlocalizedName;
    public static boolean tooltipUnlocalizedNameShift = Defaults.tooltipUnlocalizedNameShift;
    public static boolean tooltipUnlocalizedNameAdvanced = Defaults.tooltipUnlocalizedNameAdvanced;
    public static boolean tooltipInternalName = Defaults.tooltipInternalName;
    public static boolean tooltipInternalNameShift = Defaults.tooltipInternalNameShift;
    public static boolean tooltipInternalNameAdvanced = Defaults.tooltipInternalNameAdvanced;
    public static boolean tooltipMaxStack = Defaults.tooltipMaxStack;
    public static boolean tooltipMaxStackShift = Defaults.tooltipMaxStackShift;
    public static boolean tooltipMaxStackAdvanced = Defaults.tooltipMaxStackAdvanced;
    public static boolean tooltipBurnTime = Defaults.tooltipBurnTime;
    public static boolean tooltipBurnTimeShift = Defaults.tooltipBurnTimeShift;
    public static boolean tooltipBurnTimeAdvanced = Defaults.tooltipBurnTimeAdvanced;
    public static boolean tooltipOreDictNames = Defaults.tooltipOreDictNames;
    public static boolean tooltipOreDictNamesShift = Defaults.tooltipOreDictNamesShift;
    public static boolean tooltipOreDictNamesAdvanced = Defaults.tooltipOreDictNamesAdvanced;
    public static boolean tooltipFluidRegInfo = Defaults.tooltipFluidRegInfo;
    public static boolean tooltipFluidRegInfoShift = Defaults.tooltipFluidRegInfoShift;
    public static boolean tooltipFluidRegInfoAdvanced = Defaults.tooltipFluidRegInfoAdvanced;
    
    public static void preInit(FMLPreInitializationEvent evt) {
        FMLCommonHandler.instance().bus().register(new Config());
        config = new Configuration(new File(evt.getModConfigurationDirectory(), NEIIntegration.MODID + ".cfg"));