@Environment(value=CLIENT) public abstract class RealmsObjectSelectionList<E extends AlwaysSelectedEntryListWidget.Entry<E>> extends AlwaysSelectedEntryListWidget<E>
AlwaysSelectedEntryListWidget.Entry<E extends AlwaysSelectedEntryListWidget.Entry<E>>
EntryListWidget.MoveDirection
bottom, centerListVertically, client, headerHeight, height, itemHeight, left, right, top, width
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
Modifier | Constructor and Description |
---|---|
protected |
RealmsObjectSelectionList(int width,
int height,
int top,
int bottom,
int itemHeight) |
Modifier and Type | Method and Description |
---|---|
int |
addEntry(E e) |
void |
clear() |
int |
getItemCount() |
int |
getMaxPosition() |
int |
getRowLeft() |
int |
getRowTop(int index) |
int |
getRowWidth() |
int |
getScrollbarPositionX() |
void |
itemClicked(int cursorY,
int selectionIndex,
double mouseX,
double mouseY,
int listWidth) |
void |
replaceEntries(Collection<E> newEntries) |
void |
setSelected(int index) |
void |
setSelectedItem(int index) |
changeFocus
centerScrollOn, children, clearEntries, clickedHeader, ensureVisible, getEntry, getEntryAtPosition, getFocused, getMaxScroll, getScrollAmount, getSelected, isFocused, isMouseOver, isSelectedItem, keyPressed, method_30015, method_31322, method_31323, method_31383, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, moveSelection, moveSelectionIf, remove, removeEntry, render, renderBackground, renderDecorations, renderHeader, renderList, setLeftPos, setRenderHeader, setRenderSelection, setScrollAmount, setSelected, updateScrollingState, updateSize
isDragging, setDragging, setFocused
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
charTyped, focusOn, hoveredElement, keyReleased, setInitialFocus
mouseMoved
protected RealmsObjectSelectionList(int width, int height, int top, int bottom, int itemHeight)
public void setSelectedItem(int index)
public void setSelected(int index)
public void itemClicked(int cursorY, int selectionIndex, double mouseX, double mouseY, int listWidth)
public int getMaxPosition()
getMaxPosition
in class EntryListWidget<E extends AlwaysSelectedEntryListWidget.Entry<E>>
public int getScrollbarPositionX()
getScrollbarPositionX
in class EntryListWidget<E extends AlwaysSelectedEntryListWidget.Entry<E>>
public int getRowWidth()
getRowWidth
in class EntryListWidget<E extends AlwaysSelectedEntryListWidget.Entry<E>>
public void replaceEntries(Collection<E> newEntries)
replaceEntries
in class EntryListWidget<E extends AlwaysSelectedEntryListWidget.Entry<E>>
public int getItemCount()
getItemCount
in class EntryListWidget<E extends AlwaysSelectedEntryListWidget.Entry<E>>
public int getRowTop(int index)
getRowTop
in class EntryListWidget<E extends AlwaysSelectedEntryListWidget.Entry<E>>
public int getRowLeft()
getRowLeft
in class EntryListWidget<E extends AlwaysSelectedEntryListWidget.Entry<E>>
public int addEntry(E e)
addEntry
in class EntryListWidget<E extends AlwaysSelectedEntryListWidget.Entry<E>>
public void clear()