use of net.minecraftforge.fml.client.config.IConfigElement in project MorePlanets by SteveKunG.
the class ConfigManagerMP method getConfigElements.
public static List<IConfigElement> getConfigElements() {
List<IConfigElement> list = new ArrayList<>();
ConfigCategory configGeneral = ConfigManagerMP.config.getCategory(ConfigManagerMP.GENERAL);
configGeneral.setComment(GCCoreUtil.translate("gui.config.mp.general"));
list.add(new ConfigElement(configGeneral));
ConfigCategory configDimension = ConfigManagerMP.config.getCategory(ConfigManagerMP.DIMENSIONS);
configDimension.setComment(GCCoreUtil.translate("gui.config.mp.dimension"));
list.add(new ConfigElement(configDimension));
ConfigCategory configGCAddon = ConfigManagerMP.config.getCategory(ConfigManagerMP.GC_ADDON_COMPAT);
configGCAddon.setComment(GCCoreUtil.translate("gui.config.mp.gcaddon"));
list.add(new ConfigElement(configGCAddon));
ConfigCategory configGUIs = ConfigManagerMP.config.getCategory(ConfigManagerMP.OTHERS);
configGUIs.setComment(GCCoreUtil.translate("gui.config.mp.other"));
list.add(new ConfigElement(configGUIs));
return list;
}
use of net.minecraftforge.fml.client.config.IConfigElement in project Charset by CharsetMC.
the class ConfigGui method generateList.
public static List<IConfigElement> generateList(Configuration config) {
List<IConfigElement> list = new ArrayList<>();
for (String name : config.getCategoryNames()) {
ConfigCategory category = config.getCategory(name);
list.add(new DummyConfigElement.DummyCategoryElement(category.getName(), category.getLanguagekey(), generateList(category)));
}
return list;
}
use of net.minecraftforge.fml.client.config.IConfigElement in project BiomeTweaker by superckl.
the class GuiScreenConfig method getConfigElements.
private static List<IConfigElement> getConfigElements() {
final List<IConfigElement> list = new ArrayList<>();
DummyConfigElement dummy = new DummyConfigElement("Reload Scripts", false, ConfigGuiType.BOOLEAN, "biometweaker.cfg.reload");
dummy.setConfigEntryClass(ReloadScriptsConfigEntry.class);
list.add(dummy);
dummy = new DummyConfigElement("Regenerate Output Files", false, ConfigGuiType.BOOLEAN, "biometweaker.cfg.output");
dummy.setConfigEntryClass(RegenerateOutputConfigEntry.class);
list.add(dummy);
dummy = new DummyConfigElement("Biome Layout Image", false, ConfigGuiType.BOOLEAN, "biometweaker.cfg.layout");
dummy.setConfigEntryClass(BiomeLayoutConfigEntry.class);
list.add(dummy);
return list;
}
use of net.minecraftforge.fml.client.config.IConfigElement in project BuildCraft by BuildCraft.
the class BCConfigElement method getChildElements.
@Override
public List<IConfigElement> getChildElements() {
if (!isProp) {
List<IConfigElement> elements = new ArrayList<>();
Iterator<ConfigCategory> ccI = cat.getChildren().iterator();
Iterator<Property> pI = cat.getOrderedValues().iterator();
while (ccI.hasNext()) {
ConfigCategory child = ccI.next();
if (!child.parent.getQualifiedName().equals(cat.getQualifiedName())) {
continue;
}
ConfigElement temp = new BCConfigElement(child);
if (temp.showInGui()) {
elements.add(temp);
}
}
while (pI.hasNext()) {
ConfigElement temp = new ConfigElement(pI.next());
if (temp.showInGui()) {
elements.add(temp);
}
}
return elements;
} else {
return null;
}
}
use of net.minecraftforge.fml.client.config.IConfigElement 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;
}
Aggregations