@Environment(value=CLIENT) class RealmsMainScreen.RealmSelectionList extends RealmsObjectSelectionList<RealmsMainScreen.Entry>
AlwaysSelectedEntryListWidget.Entry<E extends AlwaysSelectedEntryListWidget.Entry<E>>
EntryListWidget.MoveDirection
Modifier and Type | Field and Description |
---|---|
private boolean |
field_25723 |
bottom, centerListVertically, client, headerHeight, height, itemHeight, left, right, top, width
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
Constructor and Description |
---|
RealmSelectionList() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
getMaxPosition() |
int |
getRowWidth() |
boolean |
isFocused() |
void |
itemClicked(int cursorY,
int selectionIndex,
double mouseX,
double mouseY,
int listWidth) |
boolean |
keyPressed(int keyCode,
int scanCode,
int modifiers)
Callback for when a key down event has been captured.
|
int |
method_30161(AlwaysSelectedEntryListWidget.Entry entry) |
boolean |
mouseClicked(double mouseX,
double mouseY,
int button)
Callback for when a mouse button down event
has been captured.
|
void |
setSelected(AlwaysSelectedEntryListWidget.Entry entry) |
void |
setSelected(int index) |
addEntry, getItemCount, getRowLeft, getRowTop, getScrollbarPositionX, replaceEntries, setSelectedItem
changeFocus
centerScrollOn, children, clearEntries, clickedHeader, ensureVisible, getEntry, getEntryAtPosition, getFocused, getMaxScroll, getScrollAmount, getSelected, isMouseOver, isSelectedItem, method_30015, method_31322, method_31323, method_31383, 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
public void clear()
clear
in class RealmsObjectSelectionList<RealmsMainScreen.Entry>
public int method_30161(AlwaysSelectedEntryListWidget.Entry entry)
public boolean isFocused()
isFocused
in class EntryListWidget<RealmsMainScreen.Entry>
public boolean keyPressed(int keyCode, int scanCode, int modifiers)
GLFW
class.keyPressed
in interface Element
keyPressed
in interface ParentElement
keyPressed
in class EntryListWidget<RealmsMainScreen.Entry>
keyCode
- the named key code of the event as described in the GLFW
classscanCode
- the unique/platform-specific scan code of the keyboard inputmodifiers
- a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)true
to indicate that the event handling is successful/validKeyboard.onKey(long, int, int, int, int)
,
GLFW.GLFW_KEY_Q
,
GLFWKeyCallbackI.invoke(long, int, int, int, int)
public boolean mouseClicked(double mouseX, double mouseY, int button)
GLFW
class.mouseClicked
in interface Element
mouseClicked
in interface ParentElement
mouseClicked
in class EntryListWidget<RealmsMainScreen.Entry>
mouseX
- the X coordinate of the mousemouseY
- the Y coordinate of the mousebutton
- the mouse button numbertrue
to indicate that the event handling is successful/validMouse.onMouseButton(long, int, int, int)
,
GLFW.GLFW_MOUSE_BUTTON_1
public void setSelected(int index)
setSelected
in class RealmsObjectSelectionList<RealmsMainScreen.Entry>
public void setSelected(@Nullable AlwaysSelectedEntryListWidget.Entry entry)
public void itemClicked(int cursorY, int selectionIndex, double mouseX, double mouseY, int listWidth)
itemClicked
in class RealmsObjectSelectionList<RealmsMainScreen.Entry>
public int getMaxPosition()
getMaxPosition
in class RealmsObjectSelectionList<RealmsMainScreen.Entry>
public int getRowWidth()
getRowWidth
in class RealmsObjectSelectionList<RealmsMainScreen.Entry>