public abstract static class GuiConfigEntries.ListEntryBase extends java.lang.Object implements GuiConfigEntries.IConfigEntry
| Modifier and Type | Field and Description |
|---|---|
protected GuiButtonExt |
btnDefault |
protected GuiButtonExt |
btnUndoChanges |
protected IConfigElement |
configElement |
protected HoverChecker |
defaultHoverChecker |
protected java.util.List |
defaultToolTip |
protected boolean |
drawLabel |
protected boolean |
isValidValue |
protected Minecraft |
mc |
protected java.lang.String |
name |
protected GuiConfigEntries |
owningEntryList |
protected GuiConfig |
owningScreen |
protected java.util.List |
toolTip |
protected HoverChecker |
tooltipHoverChecker |
protected HoverChecker |
undoHoverChecker |
protected java.util.List |
undoToolTip |
| Constructor and Description |
|---|
GuiConfigEntries.ListEntryBase(GuiConfig owningScreen,
GuiConfigEntries owningEntryList,
IConfigElement configElement) |
| Modifier and Type | Method and Description |
|---|---|
void |
drawEntry(int slotIndex,
int x,
int y,
int listWidth,
int slotHeight,
int mouseX,
int mouseY,
boolean isSelected) |
void |
drawToolTip(int mouseX,
int mouseY)
Handles drawing any tooltips that apply to this entry.
|
boolean |
enabled()
Is this list entry enabled?
|
IConfigElement |
getConfigElement()
Gets the IConfigElement object owned by this entry.
|
abstract java.lang.Object |
getCurrentValue()
Gets the current value of this entry.
|
abstract java.lang.Object[] |
getCurrentValues()
Gets the current values of this list entry.
|
int |
getEntryRightBound()
Gets this entry's right-hand x boundary.
|
int |
getLabelWidth()
Gets this entry's label width.
|
java.lang.String |
getName()
Gets the name of the ConfigElement owned by this entry.
|
abstract boolean |
isChanged()
Has the value of this entry changed?
|
abstract boolean |
isDefault()
Is this entry's value equal to the default value? Generally true should be returned if this entry is not a property or category
entry.
|
abstract void |
keyTyped(char eventChar,
int eventKey)
Handles user keystrokes for any GuiTextField objects in this entry.
|
abstract void |
mouseClicked(int x,
int y,
int mouseEvent)
Call
GuiTextField.mouseClicked() for and GuiTextField objects in this entry. |
boolean |
mousePressed(int index,
int x,
int y,
int mouseEvent,
int relativeX,
int relativeY) |
void |
mouseReleased(int index,
int x,
int y,
int mouseEvent,
int relativeX,
int relativeY) |
void |
onGuiClosed()
This method is called when the parent GUI is closed.
|
abstract boolean |
saveConfigElement()
Handles saving any changes that have been made to this entry back to the underlying object.
|
void |
setSelected(int p_178011_1_,
int p_178011_2_,
int p_178011_3_) |
abstract void |
setToDefault()
Sets this entry's value to the default value.
|
abstract void |
undoChanges()
Handles reverting any changes that have occurred to this entry.
|
abstract void |
updateCursorCounter()
Call
GuiTextField.updateCursorCounter() for any GuiTextField objects in this entry. |
protected final GuiConfig owningScreen
protected final GuiConfigEntries owningEntryList
protected final IConfigElement configElement
protected final Minecraft mc
protected final java.lang.String name
protected final GuiButtonExt btnUndoChanges
protected final GuiButtonExt btnDefault
protected java.util.List toolTip
protected java.util.List undoToolTip
protected java.util.List defaultToolTip
protected boolean isValidValue
protected HoverChecker tooltipHoverChecker
protected HoverChecker undoHoverChecker
protected HoverChecker defaultHoverChecker
protected boolean drawLabel
public GuiConfigEntries.ListEntryBase(GuiConfig owningScreen, GuiConfigEntries owningEntryList, IConfigElement configElement)
public void drawEntry(int slotIndex,
int x,
int y,
int listWidth,
int slotHeight,
int mouseX,
int mouseY,
boolean isSelected)
drawEntry in interface GuiListExtended.IGuiListEntrypublic void drawToolTip(int mouseX,
int mouseY)
GuiConfigEntries.IConfigEntrydrawToolTip in interface GuiConfigEntries.IConfigEntrypublic boolean mousePressed(int index,
int x,
int y,
int mouseEvent,
int relativeX,
int relativeY)
mousePressed in interface GuiListExtended.IGuiListEntrypublic void mouseReleased(int index,
int x,
int y,
int mouseEvent,
int relativeX,
int relativeY)
mouseReleased in interface GuiListExtended.IGuiListEntrypublic abstract boolean isDefault()
GuiConfigEntries.IConfigEntryisDefault in interface GuiConfigEntries.IConfigEntrypublic abstract void setToDefault()
GuiConfigEntries.IConfigEntrysetToDefault in interface GuiConfigEntries.IConfigEntrypublic abstract void keyTyped(char eventChar,
int eventKey)
GuiConfigEntries.IConfigEntryGuiTextField.keyTyped() for any GuiTextField
objects that should receive the input provided.keyTyped in interface GuiConfigEntries.IConfigEntrypublic abstract void updateCursorCounter()
GuiConfigEntries.IConfigEntryGuiTextField.updateCursorCounter() for any GuiTextField objects in this entry.updateCursorCounter in interface GuiConfigEntries.IConfigEntrypublic abstract void mouseClicked(int x,
int y,
int mouseEvent)
GuiConfigEntries.IConfigEntryGuiTextField.mouseClicked() for and GuiTextField objects in this entry.mouseClicked in interface GuiConfigEntries.IConfigEntrypublic abstract boolean isChanged()
GuiConfigEntries.IConfigEntryisChanged in interface GuiConfigEntries.IConfigEntrypublic abstract void undoChanges()
GuiConfigEntries.IConfigEntryundoChanges in interface GuiConfigEntries.IConfigEntrypublic abstract boolean saveConfigElement()
GuiConfigEntries.IConfigEntrysaveConfigElement in interface GuiConfigEntries.IConfigEntrypublic void setSelected(int p_178011_1_,
int p_178011_2_,
int p_178011_3_)
setSelected in interface GuiListExtended.IGuiListEntrypublic boolean enabled()
GuiConfigEntries.IConfigEntryenabled in interface GuiConfigEntries.IConfigEntrypublic int getLabelWidth()
GuiConfigEntries.IConfigEntrygetLabelWidth in interface GuiConfigEntries.IConfigEntrypublic int getEntryRightBound()
GuiConfigEntries.IConfigEntrygetEntryRightBound in interface GuiConfigEntries.IConfigEntrypublic IConfigElement getConfigElement()
GuiConfigEntries.IConfigEntrygetConfigElement in interface GuiConfigEntries.IConfigEntrypublic java.lang.String getName()
GuiConfigEntries.IConfigEntrygetName in interface GuiConfigEntries.IConfigEntrypublic abstract java.lang.Object getCurrentValue()
GuiConfigEntries.IConfigEntrygetCurrentValue in interface GuiConfigEntries.IConfigEntrypublic abstract java.lang.Object[] getCurrentValues()
GuiConfigEntries.IConfigEntrygetCurrentValues in interface GuiConfigEntries.IConfigEntrypublic void onGuiClosed()
GuiConfigEntries.IConfigEntryonGuiClosed in interface GuiConfigEntries.IConfigEntry