public static class GuiEditArrayEntries.BaseEntry extends java.lang.Object implements GuiEditArrayEntries.IArrayEntry
Modifier and Type | Field and Description |
---|---|
private HoverChecker |
addNewEntryAboveHoverChecker |
private java.util.List<java.lang.String> |
addNewToolTip |
protected GuiButtonExt |
btnAddNewEntryAbove |
protected GuiButtonExt |
btnRemoveEntry |
protected IConfigElement |
configElement |
protected boolean |
isValidated |
protected boolean |
isValidValue |
protected GuiEditArrayEntries |
owningEntryList |
protected GuiEditArray |
owningScreen |
private HoverChecker |
removeEntryHoverChecker |
private java.util.List<java.lang.String> |
removeToolTip |
Constructor and Description |
---|
BaseEntry(GuiEditArray owningScreen,
GuiEditArrayEntries 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,
float partial) |
void |
drawToolTip(int mouseX,
int mouseY) |
java.lang.Object |
getValue() |
boolean |
isValueSavable() |
void |
keyTyped(char eventChar,
int eventKey) |
void |
mouseClicked(int x,
int y,
int mouseEvent) |
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 |
updateCursorCounter() |
void |
updatePosition(int p_178011_1_,
int p_178011_2_,
int p_178011_3_,
float partial) |
protected final GuiEditArray owningScreen
protected final GuiEditArrayEntries owningEntryList
protected final IConfigElement configElement
protected final GuiButtonExt btnAddNewEntryAbove
private final HoverChecker addNewEntryAboveHoverChecker
protected final GuiButtonExt btnRemoveEntry
private final HoverChecker removeEntryHoverChecker
private java.util.List<java.lang.String> addNewToolTip
private java.util.List<java.lang.String> removeToolTip
protected boolean isValidValue
protected boolean isValidated
public BaseEntry(GuiEditArray owningScreen, GuiEditArrayEntries owningEntryList, IConfigElement configElement)
public void drawEntry(int slotIndex, int x, int y, int listWidth, int slotHeight, int mouseX, int mouseY, boolean isSelected, float partial)
drawEntry
in interface GuiListExtended.IGuiListEntry
public void drawToolTip(int mouseX, int mouseY)
drawToolTip
in interface GuiEditArrayEntries.IArrayEntry
public boolean mousePressed(int index, int x, int y, int mouseEvent, int relativeX, int relativeY)
mousePressed
in interface GuiListExtended.IGuiListEntry
public void mouseReleased(int index, int x, int y, int mouseEvent, int relativeX, int relativeY)
mouseReleased
in interface GuiListExtended.IGuiListEntry
public void keyTyped(char eventChar, int eventKey)
keyTyped
in interface GuiEditArrayEntries.IArrayEntry
public void updateCursorCounter()
updateCursorCounter
in interface GuiEditArrayEntries.IArrayEntry
public void mouseClicked(int x, int y, int mouseEvent)
mouseClicked
in interface GuiEditArrayEntries.IArrayEntry
public boolean isValueSavable()
isValueSavable
in interface GuiEditArrayEntries.IArrayEntry
public java.lang.Object getValue()
getValue
in interface GuiEditArrayEntries.IArrayEntry
public void updatePosition(int p_178011_1_, int p_178011_2_, int p_178011_3_, float partial)
updatePosition
in interface GuiListExtended.IGuiListEntry