public static class ForgeGuiFactory.ForgeConfigGui.ModOverridesEntry extends GuiConfigEntries.CategoryEntry
btnSelectCategory, childScreen
btnDefault, 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, updateCursorCounter
getConfigElement, getName, onGuiClosed, updatePosition
public ModOverridesEntry(GuiConfig owningScreen, GuiConfigEntries owningEntryList, IConfigElement prop)
protected GuiScreen buildChildScreen()
buildChildScreen
in class GuiConfigEntries.CategoryEntry
public boolean enabled()
enabled
in interface GuiConfigEntries.IConfigEntry
enabled
in class GuiConfigEntries.CategoryEntry
public boolean isChanged()
isChanged
in interface GuiConfigEntries.IConfigEntry
isChanged
in class GuiConfigEntries.CategoryEntry
public void undoChanges()
undoChanges
in interface GuiConfigEntries.IConfigEntry
undoChanges
in class GuiConfigEntries.CategoryEntry