Search in sources :

Example 6 with DummyCategoryElement

use of net.minecraftforge.fml.client.config.DummyConfigElement.DummyCategoryElement in project BiomesOPlenty by Glitchfiend.

the class GuiBOPFactory method getConfigElements.

private static List<IConfigElement> getConfigElements() {
    List<IConfigElement> list = new ArrayList<IConfigElement>();
    List<IConfigElement> convenience_settings = new ConfigElement(GameplayConfigurationHandler.config.getCategory(CONVENIENCE_SETTINGS.toLowerCase())).getChildElements();
    List<IConfigElement> gui_settings = new ConfigElement(config.getCategory(GUI_SETTINGS.toLowerCase())).getChildElements();
    List<IConfigElement> texture_settings = new ConfigElement(config.getCategory(VISUAL_SETTINGS.toLowerCase())).getChildElements();
    List<IConfigElement> trail_settings = new ConfigElement(config.getCategory(TRAIL_SETTINGS.toLowerCase())).getChildElements();
    list.add(new DummyCategoryElement(I18n.translateToLocal("config.category.convenienceSettings.title"), "config.category.convenienceSettings", convenience_settings));
    list.add(new DummyCategoryElement(I18n.translateToLocal("config.category.guiSettings.title"), "config.category.guiSettings", gui_settings));
    list.add(new DummyCategoryElement(I18n.translateToLocal("config.category.textureSettings.title"), "config.category.textureSettings", texture_settings));
    if (TrailManager.trailsMap.containsKey(PlayerUtil.getClientPlayerUUID())) {
        list.add(new DummyCategoryElement(I18n.translateToLocal("config.category.trailSettings.title"), "config.category.trailSettings", trail_settings));
    }
    return list;
}
Also used : IConfigElement(net.minecraftforge.fml.client.config.IConfigElement) ConfigElement(net.minecraftforge.common.config.ConfigElement) ArrayList(java.util.ArrayList) IConfigElement(net.minecraftforge.fml.client.config.IConfigElement) DummyCategoryElement(net.minecraftforge.fml.client.config.DummyConfigElement.DummyCategoryElement)

Example 7 with DummyCategoryElement

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

the class MirageWorldsConfigEntry method getConfigElements.

@Override
protected List<IConfigElement> getConfigElements() {
    List<IConfigElement> list = Lists.newArrayList();
    list.add(new DummyCategoryElement("cavern:cavelandConfig", Config.LANG_KEY + "dimension.caveland", CavelandConfigEntry.class));
    list.add(new DummyCategoryElement("cavern:caveniaConfig", Config.LANG_KEY + "dimension.cavenia", CaveniaConfigEntry.class));
    list.addAll(super.getConfigElements());
    return list;
}
Also used : IConfigElement(net.minecraftforge.fml.client.config.IConfigElement) DummyCategoryElement(net.minecraftforge.fml.client.config.DummyConfigElement.DummyCategoryElement)

Example 8 with DummyCategoryElement

use of net.minecraftforge.fml.client.config.DummyConfigElement.DummyCategoryElement 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 9 with DummyCategoryElement

use of net.minecraftforge.fml.client.config.DummyConfigElement.DummyCategoryElement 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 10 with DummyCategoryElement

use of net.minecraftforge.fml.client.config.DummyConfigElement.DummyCategoryElement 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)

Aggregations

DummyCategoryElement (net.minecraftforge.fml.client.config.DummyConfigElement.DummyCategoryElement)10 IConfigElement (net.minecraftforge.fml.client.config.IConfigElement)10 ArrayList (java.util.ArrayList)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 IEnderIOAddon (crazypants.enderio.api.addon.IEnderIOAddon)1 ConfigCategory (net.minecraftforge.common.config.ConfigCategory)1 ConfigElement (net.minecraftforge.common.config.ConfigElement)1 Configuration (net.minecraftforge.common.config.Configuration)1 ModContainer (net.minecraftforge.fml.common.ModContainer)1