public static class GuiConfigEntries.NumberSliderEntry extends GuiConfigEntries.ButtonEntry
| Modifier and Type | Field and Description |
|---|---|
protected double |
beforeValue |
btnValuebtnDefault, btnUndoChanges, configElement, defaultHoverChecker, defaultToolTip, drawLabel, isValidValue, mc, name, owningEntryList, owningScreen, toolTip, tooltipHoverChecker, undoHoverChecker, undoToolTip| Constructor and Description |
|---|
NumberSliderEntry(GuiConfig owningScreen,
GuiConfigEntries owningEntryList,
IConfigElement<?> configElement) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getCurrentValue()
Gets the current value of this entry as a String.
|
java.lang.Object[] |
getCurrentValues()
Gets the current values of this list entry as a String[].
|
boolean |
isChanged()
Has the value of this entry changed?
|
boolean |
isDefault()
Is this entry's value equal to the default value?
|
boolean |
saveConfigElement()
Handles saving any changes that have been made to this entry back to the underlying object.
|
void |
setToDefault()
Sets this entry's value to the default value.
|
void |
undoChanges()
Handles reverting any changes that have occurred to this entry.
|
void |
updateValueButtonText()
Updates the displayString of the value button.
|
void |
valueButtonPressed(int slotIndex)
Called when the value button has been clicked.
|
drawEntry, keyTyped, mouseClicked, mousePressed, mouseReleased, updateCursorCounterdrawToolTip, enabled, getConfigElement, getEntryRightBound, getLabelWidth, getName, onGuiClosedpublic NumberSliderEntry(GuiConfig owningScreen, GuiConfigEntries owningEntryList, IConfigElement<?> configElement)
public void updateValueButtonText()
GuiConfigEntries.ButtonEntryupdateValueButtonText in class GuiConfigEntries.ButtonEntrypublic void valueButtonPressed(int slotIndex)
GuiConfigEntries.ButtonEntryvalueButtonPressed in class GuiConfigEntries.ButtonEntrypublic boolean isDefault()
GuiConfigEntries.IConfigEntryisDefault in interface GuiConfigEntries.IConfigEntryisDefault in class GuiConfigEntries.ListEntryBasepublic void setToDefault()
GuiConfigEntries.IConfigEntrysetToDefault in interface GuiConfigEntries.IConfigEntrysetToDefault in class GuiConfigEntries.ListEntryBasepublic boolean isChanged()
GuiConfigEntries.IConfigEntryisChanged in interface GuiConfigEntries.IConfigEntryisChanged in class GuiConfigEntries.ListEntryBasepublic void undoChanges()
GuiConfigEntries.IConfigEntryundoChanges in interface GuiConfigEntries.IConfigEntryundoChanges in class GuiConfigEntries.ListEntryBasepublic boolean saveConfigElement()
GuiConfigEntries.IConfigEntrysaveConfigElement in interface GuiConfigEntries.IConfigEntrysaveConfigElement in class GuiConfigEntries.ListEntryBasepublic java.lang.Object getCurrentValue()
GuiConfigEntries.IConfigEntrygetCurrentValue in interface GuiConfigEntries.IConfigEntrygetCurrentValue in class GuiConfigEntries.ListEntryBasepublic java.lang.Object[] getCurrentValues()
GuiConfigEntries.IConfigEntrygetCurrentValues in interface GuiConfigEntries.IConfigEntrygetCurrentValues in class GuiConfigEntries.ListEntryBase