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;
}
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;
}
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;
}
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;
}
Aggregations