use of net.minecraftforge.fml.client.config.IConfigElement in project Cavern2 by kegare.
the class CavelandConfigEntry method getConfigElements.
@Override
protected List<IConfigElement> getConfigElements() {
List<IConfigElement> ret = super.getConfigElements();
ret.add(new DummyCategoryElement("cavern:cavelandVeins", Config.LANG_KEY + "veins", CavelandVeinsEntry.class));
return ret;
}
use of net.minecraftforge.fml.client.config.IConfigElement in project MC-Prefab by Brian-Wuest.
the class GuiPrefab method ReplaceIntegerEntries.
private void ReplaceIntegerEntries() {
for (int i = 0; i < this.entryList.listEntries.size(); i++) {
IConfigEntry entry = this.entryList.listEntries.get(i);
IConfigElement element = entry.getConfigElement();
if (element.getType() == ConfigGuiType.INTEGER) {
TextNumberSliderEntry slider = new TextNumberSliderEntry(this, this.entryList, element);
slider.updateValueButtonText();
this.entryList.listEntries.set(i, slider);
this.initEntries.set(i, slider);
}
}
}
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 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;
}
use of net.minecraftforge.fml.client.config.IConfigElement in project Geolosys by oitsjustjose.
the class ConfigGUI method getConfigElements.
private static List<IConfigElement> getConfigElements() {
ArrayList<IConfigElement> list = new ArrayList<IConfigElement>();
list.add(new ConfigElement(Config.getInstance().FeatureControl));
list.add(new ConfigElement(Config.getInstance().Samples));
list.add(new ConfigElement(Config.getInstance().UserEntries));
return list;
}
Aggregations