use of cpw.mods.fml.client.config.IConfigElement in project BluePower by Qmunity.
the class BPGuiConfig method getConfigElements.
@SuppressWarnings({ "rawtypes", "unchecked" })
private static List<IConfigElement> getConfigElements() {
List<IConfigElement> list = new ArrayList<IConfigElement>();
List<IConfigElement> listZinc = new ConfigElement(BluePower.config.getCategory(Refs.CONFIG_ZINC)).getChildElements();
List<IConfigElement> listCopper = new ConfigElement(BluePower.config.getCategory(Refs.CONFIG_COPPER)).getChildElements();
List<IConfigElement> listSilver = new ConfigElement(BluePower.config.getCategory(Refs.CONFIG_SILVER)).getChildElements();
List<IConfigElement> listTungsten = new ConfigElement(BluePower.config.getCategory(Refs.CONFIG_TUNGSTEN)).getChildElements();
List<IConfigElement> listRuby = new ConfigElement(BluePower.config.getCategory(Refs.CONFIG_RUBY)).getChildElements();
List<IConfigElement> listAmethyst = new ConfigElement(BluePower.config.getCategory(Refs.CONFIG_AMETHYST)).getChildElements();
List<IConfigElement> listSapphire = new ConfigElement(BluePower.config.getCategory(Refs.CONFIG_SAPPHIRE)).getChildElements();
List<IConfigElement> listTeslatite = new ConfigElement(BluePower.config.getCategory(Refs.CONFIG_TESLATITE)).getChildElements();
List<IConfigElement> listWorldGen = new ConfigElement(BluePower.config.getCategory(Refs.CONFIG_WORLDGEN)).getChildElements();
List<IConfigElement> listSettings = new ConfigElement(BluePower.config.getCategory(Refs.CONFIG_SETTINGS)).getChildElements();
List<IConfigElement> listRecipes = new ConfigElement(BluePower.config.getCategory(Refs.CONFIG_RECIPES)).getChildElements();
List<IConfigElement> listEnchants = new ConfigElement(BluePower.config.getCategory(Refs.CONFIG_ENCHANTS)).getChildElements();
List<IConfigElement> listPneumaticTube = new ConfigElement(BluePower.config.getCategory(Refs.CONFIG_TUBES)).getChildElements();
List<IConfigElement> listCircuitDatabase = new ConfigElement(BluePower.config.getCategory(Refs.CONFIG_CIRCUIT_DATABASE)).getChildElements();
list.add(new DummyConfigElement.DummyCategoryElement("World Gen", "config.bluepower:worldgen", listWorldGen));
list.add(new DummyConfigElement.DummyCategoryElement("Settings", "config.bluepower:settings", listSettings));
list.add(new DummyConfigElement.DummyCategoryElement("Recipes", "config.bluepower:recipes", listRecipes));
list.add(new DummyConfigElement.DummyCategoryElement("Enchantments", "config.bluepower:enchantments", listEnchants));
list.add(new DummyConfigElement.DummyCategoryElement("Pneumatic Tubes", "config.bluepower:tubes", listPneumaticTube));
list.add(new DummyConfigElement.DummyCategoryElement("Circuit Database", "config.bluepower:circuitDatabase", listCircuitDatabase));
list.add(new DummyConfigElement.DummyCategoryElement("Copper", "config.bluepower:copper", listCopper));
list.add(new DummyConfigElement.DummyCategoryElement("Zinc", "config.bluepower:zinc", listZinc));
list.add(new DummyConfigElement.DummyCategoryElement("Silver", "config.bluepower:silver", listSilver));
list.add(new DummyConfigElement.DummyCategoryElement("Tungsten", "config.bluepower:tungsten", listTungsten));
list.add(new DummyConfigElement.DummyCategoryElement("Ruby", "config.bluepower:ruby", listRuby));
list.add(new DummyConfigElement.DummyCategoryElement("Amethyst", "config.bluepower:amethyst", listAmethyst));
list.add(new DummyConfigElement.DummyCategoryElement("Sapphire", "config.bluepower:sapphire", listSapphire));
list.add(new DummyConfigElement.DummyCategoryElement("Teslatite", "config.bluepower:teslatite", listTeslatite));
return list;
}
Aggregations