public static class GuiConfigEntries.IntegerEntry extends GuiConfigEntries.StringEntry
| Modifier and Type | Field and Description |
|---|---|
protected int |
beforeValue |
textFieldValuebtnDefault, btnUndoChanges, configElement, defaultHoverChecker, defaultToolTip, drawLabel, isValidValue, mc, name, owningEntryList, owningScreen, toolTip, tooltipHoverChecker, undoHoverChecker, undoToolTip| Constructor and Description |
|---|
IntegerEntry(GuiConfig owningScreen,
GuiConfigEntries owningEntryList,
IConfigElement configElement) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isChanged()
Has the value of this entry changed?
|
void |
keyTyped(char eventChar,
int eventKey)
Handles user keystrokes for any GuiTextField objects in this entry.
|
boolean |
saveConfigElement()
Handles saving any changes that have been made to this entry back to the underlying object.
|
void |
undoChanges()
Handles reverting any changes that have occurred to this entry.
|
drawEntry, getCurrentValue, getCurrentValues, isDefault, mouseClicked, setToDefault, updateCursorCounterdrawToolTip, enabled, getConfigElement, getEntryRightBound, getLabelWidth, getName, mousePressed, mouseReleased, onGuiClosed, setSelectedpublic IntegerEntry(GuiConfig owningScreen, GuiConfigEntries owningEntryList, IConfigElement configElement)
public void keyTyped(char eventChar,
int eventKey)
GuiConfigEntries.IConfigEntryGuiTextField.keyTyped() for any GuiTextField
objects that should receive the input provided.keyTyped in interface GuiConfigEntries.IConfigEntrykeyTyped in class GuiConfigEntries.StringEntrypublic boolean isChanged()
GuiConfigEntries.IConfigEntryisChanged in interface GuiConfigEntries.IConfigEntryisChanged in class GuiConfigEntries.StringEntrypublic void undoChanges()
GuiConfigEntries.IConfigEntryundoChanges in interface GuiConfigEntries.IConfigEntryundoChanges in class GuiConfigEntries.StringEntrypublic boolean saveConfigElement()
GuiConfigEntries.IConfigEntrysaveConfigElement in interface GuiConfigEntries.IConfigEntrysaveConfigElement in class GuiConfigEntries.StringEntry