List of usage examples for net.minecraftforge.fml.client.config IConfigElement getDefault
Object getDefault();
From source file:com.kegare.bedrocklayer.client.config.CycleIntegerEntry.java
License:Minecraft Mod Public
public CycleIntegerEntry(GuiConfig owningScreen, GuiConfigEntries owningEntryList, IConfigElement configElement) { super(owningScreen, owningEntryList, configElement); this.beforeValue = NumberUtils.toInt(configElement.get().toString()); this.defaultValue = NumberUtils.toInt(configElement.getDefault().toString()); this.currentValue = beforeValue; this.btnValue.enabled = enabled(); updateValueButtonText();/* ww w. j a v a 2 s.c o m*/ }