Package com.mojang.realmsclient
Class RealmsMainScreen.RealmSelectionList
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.widget.EntryListWidget<E>
net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget<E>
net.minecraft.realms.RealmsObjectSelectionList<RealmsMainScreen.Entry>
com.mojang.realmsclient.RealmsMainScreen.RealmSelectionList
- All Implemented Interfaces:
Drawable,Element,ParentElement
- Enclosing class:
- RealmsMainScreen
@Environment(CLIENT) class RealmsMainScreen.RealmSelectionList extends RealmsObjectSelectionList<RealmsMainScreen.Entry>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget
AlwaysSelectedEntryListWidget.Entry<E extends AlwaysSelectedEntryListWidget.Entry<E>>Nested classes/interfaces inherited from class net.minecraft.client.gui.widget.EntryListWidget
EntryListWidget.class_5403 -
Field Summary
Fields Modifier and Type Field Description private booleanfield_25723Fields inherited from class net.minecraft.client.gui.widget.EntryListWidget
bottom, centerListVertically, client, headerHeight, height, itemHeight, left, right, top, widthFields inherited from class net.minecraft.client.gui.DrawableHelper
BACKGROUND_TEXTURE, GUI_ICONS_TEXTURE, STATS_ICON_TEXTURE -
Constructor Summary
Constructors Constructor Description RealmSelectionList() -
Method Summary
Modifier and Type Method Description voidclear()intgetMaxPosition()intgetRowWidth()booleanisFocused()voiditemClicked(int cursorY, int selectionIndex, double mouseX, double mouseY, int listWidth)booleankeyPressed(int keyCode, int scanCode, int modifiers)intmethod_30161(AlwaysSelectedEntryListWidget.Entry entry)booleanmouseClicked(double mouseX, double mouseY, int button)voidsetSelected(int index)voidsetSelected(AlwaysSelectedEntryListWidget.Entry entry)Methods inherited from class net.minecraft.realms.RealmsObjectSelectionList
addEntry, getItemCount, getRowLeft, getRowTop, getScrollbarPositionX, replaceEntries, setSelectedItemMethods inherited from class net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget
changeFocusMethods inherited from class net.minecraft.client.gui.widget.EntryListWidget
centerScrollOn, children, clearEntries, clickedHeader, ensureVisible, getEntry, getEntryAtPosition, getFocused, getScrollAmount, getSelected, isMouseOver, isSelectedItem, method_29344, method_30013, method_30015, mouseDragged, mouseReleased, mouseScrolled, moveSelection, remove, removeEntry, render, renderBackground, renderDecorations, renderHeader, renderList, setLeftPos, setRenderHeader, setScrollAmount, setSelected, updateScrollingState, updateSizeMethods inherited from class net.minecraft.client.gui.AbstractParentElement
isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffsetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, focusOn, hoveredElement, keyReleased, setInitialFocus
-
Field Details
-
field_25723
private boolean field_25723
-
-
Constructor Details
-
RealmSelectionList
public RealmSelectionList()
-
-
Method Details
-
clear
public void clear()- Overrides:
clearin classRealmsObjectSelectionList<RealmsMainScreen.Entry>
-
method_30161
-
isFocused
public boolean isFocused()- Overrides:
isFocusedin classEntryListWidget<RealmsMainScreen.Entry>
-
keyPressed
public boolean keyPressed(int keyCode, int scanCode, int modifiers)- Specified by:
keyPressedin interfaceElement- Specified by:
keyPressedin interfaceParentElement- Overrides:
keyPressedin classEntryListWidget<RealmsMainScreen.Entry>
-
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int button)- Specified by:
mouseClickedin interfaceElement- Specified by:
mouseClickedin interfaceParentElement- Overrides:
mouseClickedin classEntryListWidget<RealmsMainScreen.Entry>
-
setSelected
public void setSelected(int index)- Overrides:
setSelectedin classRealmsObjectSelectionList<RealmsMainScreen.Entry>
-
setSelected
-
itemClicked
public void itemClicked(int cursorY, int selectionIndex, double mouseX, double mouseY, int listWidth)- Overrides:
itemClickedin classRealmsObjectSelectionList<RealmsMainScreen.Entry>
-
getMaxPosition
public int getMaxPosition()- Overrides:
getMaxPositionin classRealmsObjectSelectionList<RealmsMainScreen.Entry>
-
getRowWidth
public int getRowWidth()- Overrides:
getRowWidthin classRealmsObjectSelectionList<RealmsMainScreen.Entry>
-