@Environment(value=CLIENT) class RealmsPlayerScreen.InvitedObjectSelectionList extends RealmsObjectSelectionList<RealmsPlayerScreen.InvitedObjectSelectionListEntry>
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
Constructor and Description |
---|
InvitedObjectSelectionList() |
Modifier and Type | Method and Description |
---|---|
void |
addEntry(PlayerInfo playerInfo) |
int |
getMaxPosition() |
int |
getRowWidth() |
int |
getScrollbarPositionX() |
boolean |
isFocused() |
void |
itemClicked(int cursorY,
int selectionIndex,
double mouseX,
double mouseY,
int listWidth) |
boolean |
mouseClicked(double mouseX,
double mouseY,
int button)
Callback for when a mouse button down event
has been captured.
|
void |
renderBackground(MatrixStack matrices) |
void |
selectInviteListItem(int item) |
void |
setSelected(int index) |
void |
setSelected(RealmsPlayerScreen.InvitedObjectSelectionListEntry invitedObjectSelectionListEntry) |
addEntry, clear, getItemCount, getRowLeft, getRowTop, replaceEntries, setSelectedItem
changeFocus
centerScrollOn, children, clearEntries, clickedHeader, ensureVisible, getEntry, getEntryAtPosition, getFocused, getMaxScroll, getScrollAmount, getSelected, isMouseOver, isSelectedItem, keyPressed, method_30015, method_31322, method_31323, method_31383, mouseDragged, mouseReleased, mouseScrolled, moveSelection, moveSelectionIf, remove, removeEntry, render, renderDecorations, renderHeader, renderList, setLeftPos, setRenderHeader, setRenderSelection, setScrollAmount, 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 addEntry(PlayerInfo playerInfo)
public int getRowWidth()
getRowWidth
in class RealmsObjectSelectionList<RealmsPlayerScreen.InvitedObjectSelectionListEntry>
public boolean isFocused()
isFocused
in class EntryListWidget<RealmsPlayerScreen.InvitedObjectSelectionListEntry>
public boolean mouseClicked(double mouseX, double mouseY, int button)
GLFW
class.mouseClicked
in interface Element
mouseClicked
in interface ParentElement
mouseClicked
in class EntryListWidget<RealmsPlayerScreen.InvitedObjectSelectionListEntry>
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 itemClicked(int cursorY, int selectionIndex, double mouseX, double mouseY, int listWidth)
itemClicked
in class RealmsObjectSelectionList<RealmsPlayerScreen.InvitedObjectSelectionListEntry>
public void setSelected(int index)
setSelected
in class RealmsObjectSelectionList<RealmsPlayerScreen.InvitedObjectSelectionListEntry>
public void selectInviteListItem(int item)
public void setSelected(@Nullable RealmsPlayerScreen.InvitedObjectSelectionListEntry invitedObjectSelectionListEntry)
setSelected
in class EntryListWidget<RealmsPlayerScreen.InvitedObjectSelectionListEntry>
public void renderBackground(MatrixStack matrices)
renderBackground
in class EntryListWidget<RealmsPlayerScreen.InvitedObjectSelectionListEntry>
public int getScrollbarPositionX()
public int getMaxPosition()
getMaxPosition
in class RealmsObjectSelectionList<RealmsPlayerScreen.InvitedObjectSelectionListEntry>