Package com.mojang.realmsclient
Class RealmsMainScreen.ServerEntry
java.lang.Object
net.minecraft.client.gui.components.AbstractSelectionList.Entry<RealmsMainScreen.Entry>
net.minecraft.client.gui.components.ObjectSelectionList.Entry<RealmsMainScreen.Entry>
com.mojang.realmsclient.RealmsMainScreen.Entry
com.mojang.realmsclient.RealmsMainScreen.ServerEntry
- All Implemented Interfaces:
GuiEventListener,TabOrderedElement,LayoutElement,NarrationSupplier
- Enclosing class:
RealmsMainScreen
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Componentprivate static final intprivate static final int(package private) final RealmsServerprivate static final intprivate final WidgetTooltipHolderFields inherited from class com.mojang.realmsclient.RealmsMainScreen.Entry
PADDING_X, PADDING_Y, STATUS_LIGHT_WIDTHFields inherited from class net.minecraft.client.gui.components.AbstractSelectionList.Entry
CONTENT_PADDING, list -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidbooleankeyPressed(KeyEvent p_445839_) booleanmouseClicked(MouseButtonEvent p_446191_, boolean p_433725_) private voidvoidrenderContent(GuiGraphics p_438955_, int p_440520_, int p_439923_, boolean p_440111_, float p_440380_) private booleanrenderOnlinePlayers(GuiGraphics guiGraphics, int top, int left, int width, int height, int mouseX, int mouseY, float partialTick) Methods inherited from class com.mojang.realmsclient.RealmsMainScreen.Entry
firstLineY, gameModeTextX, lineHeight, renderClampedString, renderFirstLine, renderGameMode, renderSecondLine, renderStatusLights, renderThirdLine, secondLineY, textX, thirdLineY, versionTextXMethods inherited from class net.minecraft.client.gui.components.ObjectSelectionList.Entry
updateNarrationMethods inherited from class net.minecraft.client.gui.components.AbstractSelectionList.Entry
getContentBottom, getContentHeight, getContentRight, getContentWidth, getContentX, getContentXMiddle, getContentY, getContentYMiddle, getHeight, getRectangle, getWidth, getX, getY, isFocused, isMouseOver, setFocused, setHeight, setWidth, setX, setY, visitWidgetsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
charTyped, getBorderForArrowNavigation, getCurrentFocusPath, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled, nextFocusPath, shouldTakeFocusAfterInteractionMethods inherited from interface net.minecraft.client.gui.layouts.LayoutElement
setPositionMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
ONLINE_PLAYERS_TOOLTIP_HEADER
-
PLAYERS_ONLINE_SPRITE_SIZE
private static final int PLAYERS_ONLINE_SPRITE_SIZE- See Also:
-
PLAYERS_ONLINE_SPRITE_SEPARATION
private static final int PLAYERS_ONLINE_SPRITE_SEPARATION- See Also:
-
SKIN_HEAD_LARGE_WIDTH
private static final int SKIN_HEAD_LARGE_WIDTH- See Also:
-
serverData
-
tooltip
-
-
Constructor Details
-
ServerEntry
-
-
Method Details
-
renderContent
public void renderContent(GuiGraphics p_438955_, int p_440520_, int p_439923_, boolean p_440111_, float p_440380_) - Specified by:
renderContentin classAbstractSelectionList.Entry<RealmsMainScreen.Entry>
-
renderOnlinePlayers
private boolean renderOnlinePlayers(GuiGraphics guiGraphics, int top, int left, int width, int height, int mouseX, int mouseY, float partialTick) -
playRealm
private void playRealm() -
createUnitializedRealm
private void createUnitializedRealm() -
mouseClicked
- Specified by:
mouseClickedin interfaceGuiEventListener- Overrides:
mouseClickedin classObjectSelectionList.Entry<RealmsMainScreen.Entry>
-
keyPressed
-
getNarration
- Specified by:
getNarrationin classObjectSelectionList.Entry<RealmsMainScreen.Entry>
-
getServer
-