Package com.mojang.realmsclient
Class RealmsMainScreen.ServerList
java.lang.Object
net.minecraft.client.gui.AbstractGui
net.minecraft.client.gui.FocusableGui
net.minecraft.client.gui.widget.list.AbstractList<E>
net.minecraft.client.gui.widget.list.ExtendedList<E>
net.minecraft.realms.RealmsObjectSelectionList<RealmsMainScreen.ListEntry>
com.mojang.realmsclient.RealmsMainScreen.ServerList
- All Implemented Interfaces:
IGuiEventListener,INestedGuiEventHandler,IRenderable
- Enclosing class:
- RealmsMainScreen
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.widget.list.ExtendedList
ExtendedList.AbstractListEntry<E extends ExtendedList.AbstractListEntry<E>>Nested classes/interfaces inherited from class net.minecraft.client.gui.widget.list.AbstractList
AbstractList.Ordering -
Field Summary
FieldsFields inherited from class net.minecraft.client.gui.widget.list.AbstractList
centerListVertically, headerHeight, height, itemHeight, minecraft, width, x0, x1, y0, y1Fields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintaddMessageEntry(RealmsMainScreen.ListEntry p_241825_1_) voidclear()intintbooleanvoiditemClicked(int p_231401_1_, int p_231401_2_, double p_231401_3_, double p_231401_5_, int p_231401_7_) booleankeyPressed(int p_231046_1_, int p_231046_2_, int p_231046_3_) booleanmouseClicked(double p_231044_1_, double p_231044_3_, int p_231044_5_) voidselectItem(int p_231400_1_) voidsetSelected(RealmsMainScreen.ListEntry p_241215_1_) Methods inherited from class net.minecraft.realms.RealmsObjectSelectionList
addEntry, getItemCount, getRowLeft, getRowTop, getScrollbarPosition, replaceEntries, setSelectedItemMethods inherited from class net.minecraft.client.gui.widget.list.ExtendedList
changeFocusMethods inherited from class net.minecraft.client.gui.widget.list.AbstractList
centerScrollOn, children, clearEntries, clickedHeader, ensureVisible, getBottom, getEntry, getEntryAtPosition, getFocused, getHeight, getLeft, getMaxScroll, getRight, getRowRight, getScrollAmount, getSelected, getTop, getWidth, isMouseOver, isSelectedItem, mouseDragged, mouseReleased, mouseScrolled, moveSelection, moveSelection, refreshSelection, remove, removeEntry, render, renderBackground, renderDecorations, renderHeader, renderList, setLeftPos, setRenderBackground, setRenderHeader, setRenderSelection, setRenderTopAndBottom, setScrollAmount, updateScrollingState, updateSizeMethods inherited from class net.minecraft.client.gui.FocusableGui
isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.AbstractGui
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLineMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.IGuiEventListener
mouseMovedMethods inherited from interface net.minecraft.client.gui.INestedGuiEventHandler
charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, setInitialFocus
-
Field Details
-
showingMessage
private boolean showingMessage
-
-
Constructor Details
-
ServerList
public ServerList()
-
-
Method Details
-
clear
public void clear()- Overrides:
clearin classRealmsObjectSelectionList<RealmsMainScreen.ListEntry>
-
addMessageEntry
-
isFocused
public boolean isFocused()- Overrides:
isFocusedin classAbstractList<RealmsMainScreen.ListEntry>
-
keyPressed
public boolean keyPressed(int p_231046_1_, int p_231046_2_, int p_231046_3_) - Specified by:
keyPressedin interfaceIGuiEventListener- Specified by:
keyPressedin interfaceINestedGuiEventHandler- Overrides:
keyPressedin classAbstractList<RealmsMainScreen.ListEntry>
-
mouseClicked
public boolean mouseClicked(double p_231044_1_, double p_231044_3_, int p_231044_5_) - Specified by:
mouseClickedin interfaceIGuiEventListener- Specified by:
mouseClickedin interfaceINestedGuiEventHandler- Overrides:
mouseClickedin classAbstractList<RealmsMainScreen.ListEntry>
-
selectItem
public void selectItem(int p_231400_1_) - Overrides:
selectItemin classRealmsObjectSelectionList<RealmsMainScreen.ListEntry>
-
setSelected
- Overrides:
setSelectedin classAbstractList<RealmsMainScreen.ListEntry>
-
itemClicked
public void itemClicked(int p_231401_1_, int p_231401_2_, double p_231401_3_, double p_231401_5_, int p_231401_7_) - Overrides:
itemClickedin classRealmsObjectSelectionList<RealmsMainScreen.ListEntry>
-
getMaxPosition
public int getMaxPosition()- Overrides:
getMaxPositionin classRealmsObjectSelectionList<RealmsMainScreen.ListEntry>
-
getRowWidth
public int getRowWidth()- Overrides:
getRowWidthin classRealmsObjectSelectionList<RealmsMainScreen.ListEntry>
-