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
class RealmsMainScreen.ServerList extends RealmsObjectSelectionList<RealmsMainScreen.ListEntry>
-
-
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
Fields Modifier and Type Field Description private booleanshowingMessage-
Fields inherited from class net.minecraft.client.gui.widget.list.AbstractList
centerListVertically, headerHeight, height, itemHeight, minecraft, width, x0, x1, y0, y1
-
Fields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
-
-
Constructor Summary
Constructors Constructor Description ServerList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intaddMessageEntry(RealmsMainScreen.ListEntry p_241825_1_)voidclear()intgetMaxPosition()intgetRowWidth()booleanisFocused()voiditemClicked(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, setSelectedItem
-
Methods inherited from class net.minecraft.client.gui.widget.list.ExtendedList
changeFocus
-
Methods 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, updateSize
-
Methods inherited from class net.minecraft.client.gui.FocusableGui
isDragging, setDragging, setFocused
-
Methods inherited from class net.minecraft.client.gui.AbstractGui
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraft.client.gui.IGuiEventListener
mouseMoved
-
Methods inherited from interface net.minecraft.client.gui.INestedGuiEventHandler
charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, setInitialFocus
-
-
-
-
Method Detail
-
clear
public void clear()
- Overrides:
clearin classRealmsObjectSelectionList<RealmsMainScreen.ListEntry>
-
addMessageEntry
public int addMessageEntry(RealmsMainScreen.ListEntry p_241825_1_)
-
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
public void setSelected(@Nullable RealmsMainScreen.ListEntry p_241215_1_)- 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>
-
-