Search in sources :

Example 1 with IConfigEntry

use of net.minecraftforge.fml.client.config.GuiConfigEntries.IConfigEntry 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);
        }
    }
}
Also used : IConfigEntry(net.minecraftforge.fml.client.config.GuiConfigEntries.IConfigEntry) IConfigElement(net.minecraftforge.fml.client.config.IConfigElement)

Aggregations

IConfigEntry (net.minecraftforge.fml.client.config.GuiConfigEntries.IConfigEntry)1 IConfigElement (net.minecraftforge.fml.client.config.IConfigElement)1