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