public static class ForgeGuiFactory.ForgeConfigGui.ModOverridesEntry extends GuiConfigEntries.CategoryEntry
btnSelectCategory, childScreenbtnDefault, btnUndoChanges, configElement, defaultHoverChecker, defaultToolTip, drawLabel, isValidValue, mc, name, owningEntryList, owningScreen, toolTip, tooltipHoverChecker, undoHoverChecker, undoToolTip| Constructor and Description |
|---|
ModOverridesEntry(GuiConfig owningScreen,
GuiConfigEntries owningEntryList,
IConfigElement prop) |
| Modifier and Type | Method and Description |
|---|---|
protected GuiScreen |
buildChildScreen()
This method is called in the constructor and is used to set the childScreen field.
|
boolean |
enabled()
By overriding the enabled() method and checking the value of the "enabled" entry this entry is enabled/disabled based on the value of
the other entry.
|
boolean |
isChanged()
Check to see if the child screen's entry list has changed.
|
void |
undoChanges()
Since adding a new entry to the child screen is what constitutes a change here, reset the child
screen listEntries to the saved list.
|
drawEntry, drawToolTip, getCurrentValue, getCurrentValues, getEntryRightBound, getLabelWidth, isDefault, keyTyped, mouseClicked, mousePressed, mouseReleased, saveConfigElement, setToDefault, updateCursorCountergetConfigElement, getName, onGuiClosed, setSelectedpublic ModOverridesEntry(GuiConfig owningScreen, GuiConfigEntries owningEntryList, IConfigElement prop)
protected GuiScreen buildChildScreen()
buildChildScreen in class GuiConfigEntries.CategoryEntrypublic boolean enabled()
enabled in interface GuiConfigEntries.IConfigEntryenabled in class GuiConfigEntries.CategoryEntrypublic boolean isChanged()
isChanged in interface GuiConfigEntries.IConfigEntryisChanged in class GuiConfigEntries.CategoryEntrypublic void undoChanges()
undoChanges in interface GuiConfigEntries.IConfigEntryundoChanges in class GuiConfigEntries.CategoryEntry