Search in sources :

Example 21 with IConfigElement

use of net.minecraftforge.fml.client.config.IConfigElement in project Cavern2 by kegare.

the class AquaCavernConfigEntry method getConfigElements.

@Override
protected List<IConfigElement> getConfigElements() {
    List<IConfigElement> ret = super.getConfigElements();
    ret.add(new DummyCategoryElement("cavern:aquaCavernBiomes", Config.LANG_KEY + "biomes", AquaCavernBiomesEntry.class));
    ret.add(new DummyCategoryElement("cavern:aquaCavernVeins", Config.LANG_KEY + "veins", AquaCavernVeinsEntry.class));
    return ret;
}
Also used : IConfigElement(net.minecraftforge.fml.client.config.IConfigElement) DummyCategoryElement(net.minecraftforge.fml.client.config.DummyConfigElement.DummyCategoryElement)

Example 22 with IConfigElement

use of net.minecraftforge.fml.client.config.IConfigElement in project Cavern2 by kegare.

the class CaveniaConfigEntry method getConfigElements.

@Override
protected List<IConfigElement> getConfigElements() {
    List<IConfigElement> ret = super.getConfigElements();
    ret.add(new DummyCategoryElement("cavern:caveniaBiomes", Config.LANG_KEY + "biomes", CaveniaBiomesEntry.class));
    ret.add(new DummyCategoryElement("cavern:caveniaVeins", Config.LANG_KEY + "veins", CaveniaVeinsEntry.class));
    return ret;
}
Also used : IConfigElement(net.minecraftforge.fml.client.config.IConfigElement) DummyCategoryElement(net.minecraftforge.fml.client.config.DummyConfigElement.DummyCategoryElement)

Example 23 with IConfigElement

use of net.minecraftforge.fml.client.config.IConfigElement in project Cavern2 by kegare.

the class CaveConfigGui method getConfigElements.

private static List<IConfigElement> getConfigElements() {
    List<IConfigElement> list = Lists.newArrayList();
    list.add(new DummyCategoryElement("cavern:generalConfig", Config.LANG_KEY + Configuration.CATEGORY_GENERAL, GeneralConfigEntry.class));
    list.add(new DummyCategoryElement("cavern:displayConfig", Config.LANG_KEY + "display", DisplayConfigEntry.class));
    list.add(new DummyCategoryElement("cavern:miningAssistConfig", Config.LANG_KEY + "miningassist", MiningAssistConfigEntry.class));
    list.add(new DummyCategoryElement("cavern:dimensionConfig", Config.LANG_KEY + "dimension", DimensionConfigEntry.class));
    return list;
}
Also used : MiningAssistConfigEntry(cavern.client.config.common.MiningAssistConfigEntry) DimensionConfigEntry(cavern.client.config.dimension.DimensionConfigEntry) DisplayConfigEntry(cavern.client.config.common.DisplayConfigEntry) IConfigElement(net.minecraftforge.fml.client.config.IConfigElement) DummyCategoryElement(net.minecraftforge.fml.client.config.DummyConfigElement.DummyCategoryElement) GeneralConfigEntry(cavern.client.config.common.GeneralConfigEntry)

Example 24 with IConfigElement

use of net.minecraftforge.fml.client.config.IConfigElement in project ForestryMC by ForestryMC.

the class ForestryGuiConfig method getConfigCategories.

private static List<IConfigElement> getConfigCategories() {
    List<IConfigElement> configElements = new ArrayList<>();
    LocalizedConfiguration configCommon = Config.configCommon;
    if (configCommon != null) {
        List<String> commonCategoryNames = Arrays.asList("crafting", "difficulty", "genetics", "performance", "structures", "tweaks", "world");
        for (String categoryName : commonCategoryNames) {
            ConfigCategory category = configCommon.getCategory(categoryName);
            configElements.add(new ConfigElement(category));
        }
    }
    LocalizedConfiguration configFluid = Config.configFluid;
    if (configFluid != null) {
        List<String> fluidCategoryNames = Arrays.asList("enableFluid", "enableFluidBlock");
        for (String categoryName : fluidCategoryNames) {
            ConfigCategory category = configFluid.getCategory(categoryName);
            configElements.add(new ConfigElement(category));
        }
    }
    return configElements;
}
Also used : ConfigCategory(net.minecraftforge.common.config.ConfigCategory) ConfigElement(net.minecraftforge.common.config.ConfigElement) IConfigElement(net.minecraftforge.fml.client.config.IConfigElement) ArrayList(java.util.ArrayList) IConfigElement(net.minecraftforge.fml.client.config.IConfigElement)

Aggregations

IConfigElement (net.minecraftforge.fml.client.config.IConfigElement)24 ArrayList (java.util.ArrayList)14 ConfigElement (net.minecraftforge.common.config.ConfigElement)11 DummyCategoryElement (net.minecraftforge.fml.client.config.DummyConfigElement.DummyCategoryElement)10 ConfigCategory (net.minecraftforge.common.config.ConfigCategory)7 DummyConfigElement (net.minecraftforge.fml.client.config.DummyConfigElement)5 Configuration (net.minecraftforge.common.config.Configuration)2 Property (net.minecraftforge.common.config.Property)2 DisplayConfigEntry (cavern.client.config.common.DisplayConfigEntry)1 GeneralConfigEntry (cavern.client.config.common.GeneralConfigEntry)1 MiningAssistConfigEntry (cavern.client.config.common.MiningAssistConfigEntry)1 DimensionConfigEntry (cavern.client.config.dimension.DimensionConfigEntry)1 AgriConfigCategory (com.agricraft.agricore.config.AgriConfigCategory)1 IEnderIOAddon (crazypants.enderio.api.addon.IEnderIOAddon)1 ConfigCats (de.canitzp.tumat.configuration.cats.ConfigCats)1 ResourceLocation (net.minecraft.util.ResourceLocation)1 IConfigEntry (net.minecraftforge.fml.client.config.GuiConfigEntries.IConfigEntry)1 ModContainer (net.minecraftforge.fml.common.ModContainer)1