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 boolean
showingMessage
-
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 int
addMessageEntry(RealmsMainScreen.ListEntry p_241825_1_)
void
clear()
int
getMaxPosition()
int
getRowWidth()
boolean
isFocused()
void
itemClicked(int p_231401_1_, int p_231401_2_, double p_231401_3_, double p_231401_5_, int p_231401_7_)
boolean
keyPressed(int p_231046_1_, int p_231046_2_, int p_231046_3_)
boolean
mouseClicked(double p_231044_1_, double p_231044_3_, int p_231044_5_)
void
selectItem(int p_231400_1_)
void
setSelected(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:
clear
in classRealmsObjectSelectionList<RealmsMainScreen.ListEntry>
-
addMessageEntry
public int addMessageEntry(RealmsMainScreen.ListEntry p_241825_1_)
-
isFocused
public boolean isFocused()
- Overrides:
isFocused
in classAbstractList<RealmsMainScreen.ListEntry>
-
keyPressed
public boolean keyPressed(int p_231046_1_, int p_231046_2_, int p_231046_3_)
- Specified by:
keyPressed
in interfaceIGuiEventListener
- Specified by:
keyPressed
in interfaceINestedGuiEventHandler
- Overrides:
keyPressed
in classAbstractList<RealmsMainScreen.ListEntry>
-
mouseClicked
public boolean mouseClicked(double p_231044_1_, double p_231044_3_, int p_231044_5_)
- Specified by:
mouseClicked
in interfaceIGuiEventListener
- Specified by:
mouseClicked
in interfaceINestedGuiEventHandler
- Overrides:
mouseClicked
in classAbstractList<RealmsMainScreen.ListEntry>
-
selectItem
public void selectItem(int p_231400_1_)
- Overrides:
selectItem
in classRealmsObjectSelectionList<RealmsMainScreen.ListEntry>
-
setSelected
public void setSelected(@Nullable RealmsMainScreen.ListEntry p_241215_1_)
- Overrides:
setSelected
in 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:
itemClicked
in classRealmsObjectSelectionList<RealmsMainScreen.ListEntry>
-
getMaxPosition
public int getMaxPosition()
- Overrides:
getMaxPosition
in classRealmsObjectSelectionList<RealmsMainScreen.ListEntry>
-
getRowWidth
public int getRowWidth()
- Overrides:
getRowWidth
in classRealmsObjectSelectionList<RealmsMainScreen.ListEntry>
-
-