package com.scottkillen.mod.dendrology.config;

import com.scottkillen.mod.dendrology.TheMod;
import net.minecraft.util.StatCollector;
import net.minecraftforge.common.config.Configuration;

public enum Settings
{
    ;

    public static void syncConfig(Configuration config)
    {
        TreeGen.syncConfig(config);
    }

    @SuppressWarnings("BooleanMethodNameMustStartWithQuestion")
    private static boolean get(Configuration config, String settingName, String category, boolean defaultValue)
    {
        return config.getBoolean(settingName, category, defaultValue, getLocalizedComment(settingName));
    }

    private static String getLocalizedComment(String settingName)
    {
        return StatCollector.translateToLocal("config." + TheMod.MOD_ID + ':' + settingName);
    }

    public enum TreeGen
    {
        ;

        public static final String CATEGORY = Configuration.CATEGORY_GENERAL + ".treegen";

        // Defaults

        private static void syncConfig(Configuration config)
        {
        }
    }
}

@@ -943,79 +943,512 @@
 lts%0A
-%0A        private static void syncConfig(Configuration config)%0A        %7B
+        private static boolean genBeechTrees = true;%0A        private static boolean genCedarTrees = true;%0A%0A        public static boolean doBeechTreeGeneration() %7B return genBeechTrees; %7D%0A        public static boolean doCedarTreeGeneration() %7B return genCedarTrees; %7D%0A%0A        private static void syncConfig(Configuration config)%0A        %7B%0A            genBeechTrees = get(config, %22genBeechTrees%22, CATEGORY, genBeechTrees);%0A            genCedarTrees = get(config, %22genCedarTrees%22, CATEGORY, genCedarTrees);
 %0A   

Add config file settings