@Environment(value=CLIENT) class RealmsSelectWorldTemplateScreen.WorldTemplateObjectSelectionList extends RealmsObjectSelectionList<RealmsSelectWorldTemplateScreen.WorldTemplateObjectSelectionListEntry>
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 |
---|
WorldTemplateObjectSelectionList() |
WorldTemplateObjectSelectionList(Iterable<WorldTemplate> templates) |
Modifier and Type | Method and Description |
---|---|
void |
addEntry(WorldTemplate template) |
WorldTemplate |
getItem(int index) |
int |
getMaxPosition() |
int |
getRowWidth() |
List<WorldTemplate> |
getValues() |
boolean |
isEmpty() |
boolean |
isFocused() |
boolean |
mouseClicked(double mouseX,
double mouseY,
int button)
Callback for when a mouse button down event
has been captured.
|
void |
renderBackground(MatrixStack matrices) |
void |
setSelected(int index) |
void |
setSelected(RealmsSelectWorldTemplateScreen.WorldTemplateObjectSelectionListEntry worldTemplateObjectSelectionListEntry) |
addEntry, clear, getItemCount, getRowLeft, getRowTop, getScrollbarPositionX, itemClicked, 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 WorldTemplateObjectSelectionList()
public WorldTemplateObjectSelectionList(Iterable<WorldTemplate> templates)
public void addEntry(WorldTemplate template)
public boolean mouseClicked(double mouseX, double mouseY, int button)
GLFW
class.mouseClicked
in interface Element
mouseClicked
in interface ParentElement
mouseClicked
in class EntryListWidget<RealmsSelectWorldTemplateScreen.WorldTemplateObjectSelectionListEntry>
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)
public void setSelected(@Nullable RealmsSelectWorldTemplateScreen.WorldTemplateObjectSelectionListEntry worldTemplateObjectSelectionListEntry)
public int getMaxPosition()
public int getRowWidth()
public void renderBackground(MatrixStack matrices)
public boolean isFocused()
public boolean isEmpty()
public WorldTemplate getItem(int index)
public List<WorldTemplate> getValues()