Package net.minecraftforge.common.config

Examples of net.minecraftforge.common.config.ConfigElement


import cpw.mods.fml.client.config.GuiConfig;

public class GuiBotaniaConfig extends GuiConfig {

  public GuiBotaniaConfig(GuiScreen parentScreen) {
    super(parentScreen, new ConfigElement(ConfigHandler.config.getCategory(Configuration.CATEGORY_GENERAL)).getChildElements(), LibMisc.MOD_ID, false, false, GuiConfig.getAbridgedConfigPath(ConfigHandler.config.toString()));
  }
View Full Code Here


public class GuiConfiguration extends GuiConfig {
    public GuiConfiguration(GuiScreen guiScreen) {
        super(
            guiScreen,
            new ConfigElement(ConfigurationBackpack.config.getCategory(Configuration.CATEGORY_GENERAL)).getChildElements(),
            Constants.MOD_ID,
            false,
            false,
            I18n.format(Localizations.LABEL_BACKPACK_CONFIG)
        );
View Full Code Here

*/
public class GuiGeneratorsConfig extends GuiConfig
{
  public GuiGeneratorsConfig(GuiScreen parent)
  {
    super(parent, new ConfigElement(Mekanism.configuration.getCategory("generation")).getChildElements(),
        "MekanismGenerators", false, false, GuiConfig.getAbridgedConfigPath(Mekanism.configuration.toString()));
  }
View Full Code Here

    @Override
    protected GuiScreen buildChildScreen()
    {
      return new GuiConfig(this.owningScreen,
          new ConfigElement(Mekanism.configuration.getCategory("tools.general")).getChildElements(),
          this.owningScreen.modID, Configuration.CATEGORY_GENERAL, this.configElement.requiresWorldRestart() || this.owningScreen.allRequireWorldRestart,
          this.configElement.requiresMcRestart() || this.owningScreen.allRequireMcRestart,
          GuiConfig.getAbridgedConfigPath(Mekanism.configuration.toString()));
    }
View Full Code Here

    @Override
    protected GuiScreen buildChildScreen()
    {
      return new GuiConfig(this.owningScreen,
          new ConfigElement(Mekanism.configuration.getCategory("tools.armor-balance")).getChildElements(),
          this.owningScreen.modID, Configuration.CATEGORY_GENERAL, this.configElement.requiresWorldRestart() || this.owningScreen.allRequireWorldRestart,
          this.configElement.requiresMcRestart() || this.owningScreen.allRequireMcRestart,
          GuiConfig.getAbridgedConfigPath(Mekanism.configuration.toString()));
    }
View Full Code Here

    @Override
    protected GuiScreen buildChildScreen()
    {
      return new GuiConfig(this.owningScreen,
          new ConfigElement(Mekanism.configuration.getCategory("tools.tool-balance")).getChildElements(),
          this.owningScreen.modID, Configuration.CATEGORY_GENERAL, this.configElement.requiresWorldRestart() || this.owningScreen.allRequireWorldRestart,
          this.configElement.requiresMcRestart() || this.owningScreen.allRequireMcRestart,
          GuiConfig.getAbridgedConfigPath(Mekanism.configuration.toString()));
    }
View Full Code Here

    @Override
    protected GuiScreen buildChildScreen()
    {
      return new GuiConfig(this.owningScreen,
          new ConfigElement(Mekanism.configuration.getCategory(Configuration.CATEGORY_GENERAL)).getChildElements(),
          this.owningScreen.modID, Configuration.CATEGORY_GENERAL, false, false,
          GuiConfig.getAbridgedConfigPath(Mekanism.configuration.toString()));
    }
View Full Code Here

    @Override
    protected GuiScreen buildChildScreen()
    {
      return new GuiConfig(this.owningScreen,
          new ConfigElement(Mekanism.configuration.getCategory("usage")).getChildElements(),
          this.owningScreen.modID, Configuration.CATEGORY_GENERAL, false, false,
          GuiConfig.getAbridgedConfigPath(Mekanism.configuration.toString()));
    }
View Full Code Here

    }

    public static List<IConfigElement> getConfigElements()
    {
        List<IConfigElement> list = new ArrayList<IConfigElement>();
        list.addAll(new ConfigElement(config.getCategory(Constants.CONFIG_CATEGORY_DIMENSIONS)).getChildElements());
        list.addAll(new ConfigElement(config.getCategory(Constants.CONFIG_CATEGORY_SCHEMATIC)).getChildElements());
        list.addAll(new ConfigElement(config.getCategory(Constants.CONFIG_CATEGORY_ACHIEVEMENTS)).getChildElements());
        list.addAll(new ConfigElement(config.getCategory(Constants.CONFIG_CATEGORY_ENTITIES)).getChildElements());
        list.addAll(new ConfigElement(config.getCategory(Constants.CONFIG_CATEGORY_GENERAL)).getChildElements());
        return list;
    }
View Full Code Here

    {
        List<IConfigElement> list = new ArrayList<IConfigElement>();

        for (IPlanetsModule module : GalacticraftPlanets.commonModules.values())
        {
            list.addAll(new ConfigElement(module.getConfiguration().getCategory(Constants.CONFIG_CATEGORY_DIMENSIONS)).getChildElements());
        }

        for (IPlanetsModule module : GalacticraftPlanets.commonModules.values())
        {
            list.addAll(new ConfigElement(module.getConfiguration().getCategory(Constants.CONFIG_CATEGORY_ENTITIES)).getChildElements());
        }

        for (IPlanetsModule module : GalacticraftPlanets.commonModules.values())
        {
            list.addAll(new ConfigElement(module.getConfiguration().getCategory(Constants.CONFIG_CATEGORY_ACHIEVEMENTS)).getChildElements());
        }

        for (IPlanetsModule module : GalacticraftPlanets.commonModules.values())
        {
            list.addAll(new ConfigElement(module.getConfiguration().getCategory(Constants.CONFIG_CATEGORY_ENTITIES)).getChildElements());
        }

        for (IPlanetsModule module : GalacticraftPlanets.commonModules.values())
        {
            list.addAll(new ConfigElement(module.getConfiguration().getCategory(Constants.CONFIG_CATEGORY_GENERAL)).getChildElements());
        }

        return list;
    }
View Full Code Here

TOP

Related Classes of net.minecraftforge.common.config.ConfigElement

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.