Search in sources :

Example 1 with ConfigCats

use of de.canitzp.tumat.configuration.cats.ConfigCats in project TUMAT by canitzp.

the class GuiConf method getConfigElements.

private static List<IConfigElement> getConfigElements() {
    List<IConfigElement> list = new ArrayList<>();
    for (int i = 0; i < ConfigCats.values().length; i++) {
        ConfigCats cat = ConfigCats.values()[i];
        ConfigHandler.config.setCategoryComment(cat.name, cat.desc);
        list.add(new ConfigElement(ConfigHandler.config.getCategory(cat.name)));
    }
    return list;
}
Also used : ConfigElement(net.minecraftforge.common.config.ConfigElement) IConfigElement(net.minecraftforge.fml.client.config.IConfigElement) ConfigCats(de.canitzp.tumat.configuration.cats.ConfigCats) ArrayList(java.util.ArrayList) IConfigElement(net.minecraftforge.fml.client.config.IConfigElement)

Aggregations

ConfigCats (de.canitzp.tumat.configuration.cats.ConfigCats)1 ArrayList (java.util.ArrayList)1 ConfigElement (net.minecraftforge.common.config.ConfigElement)1 IConfigElement (net.minecraftforge.fml.client.config.IConfigElement)1