Class RealmsMainScreen.Entry
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
- All Implemented Interfaces:
GuiEventListener, TabOrderedElement, LayoutElement, NarrationSupplier
- Direct Known Subclasses:
RealmsMainScreen.AvailableSnapshotEntry, RealmsMainScreen.NotificationMessageEntry, RealmsMainScreen.ParentEntry, RealmsMainScreen.ServerEntry
- Enclosing class:
RealmsMainScreen
private abstract class RealmsMainScreen.Entry
extends ObjectSelectionList.Entry<RealmsMainScreen.Entry>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intprotected static final intprivate static final intprotected static final intFields inherited from class AbstractSelectionList.Entry
CONTENT_PADDING, list -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voiddrawRealmStatus(GuiGraphics graphics, int x, int y, int xm, int ym, Identifier sprite, Supplier<Component> tooltip) protected intfirstLineY(int rowTop) protected intgameModeTextX(int rowLeft, int rowWidth, Component versionComponent) protected intprotected voidrenderClampedString(GuiGraphics graphics, @Nullable String string, int x, int y, int maxX, int color) protected voidrenderFirstLine(GuiGraphics graphics, int rowTop, int rowLeft, int rowWidth, int serverNameColor, RealmsServer serverData) protected intrenderGameMode(RealmsServer server, GuiGraphics graphics, int rowLeft, int rowWidth, int firstLineY) protected voidrenderSecondLine(GuiGraphics graphics, int rowTop, int rowLeft, int rowWidth, RealmsServer serverData) protected voidrenderStatusLights(RealmsServer serverData, GuiGraphics graphics, int rowRight, int rowTop, int mouseX, int mouseY) protected voidrenderThirdLine(GuiGraphics graphics, int rowTop, int rowLeft, RealmsServer server) protected intsecondLineY(int firstLineY) protected inttextX(int rowLeft) protected intthirdLineY(int firstLineY) protected intversionTextX(int rowLeft, int rowWidth, Component versionComponent) Methods inherited from class ObjectSelectionList.Entry
getNarration, mouseClicked, updateNarrationMethods inherited from class AbstractSelectionList.Entry
getContentBottom, getContentHeight, getContentRight, getContentWidth, getContentX, getContentXMiddle, getContentY, getContentYMiddle, getHeight, getRectangle, getWidth, getX, getY, isFocused, isMouseOver, renderContent, setFocused, setHeight, setWidth, setX, setY, visitWidgetsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface GuiEventListener
charTyped, getBorderForArrowNavigation, getCurrentFocusPath, keyPressed, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled, nextFocusPath, shouldTakeFocusAfterInteractionMethods inherited from interface LayoutElement
setPositionMethods inherited from interface TabOrderedElement
getTabOrderGroup
-
Field Details
-
STATUS_LIGHT_WIDTH
protected static final int STATUS_LIGHT_WIDTH- See Also:
-
STATUS_LIGHT_HEIGHT
private static final int STATUS_LIGHT_HEIGHT- See Also:
-
PADDING_X
protected static final int PADDING_X- See Also:
-
PADDING_Y
protected static final int PADDING_Y- See Also:
-
-
Constructor Details
-
Entry
private Entry()
-
-
Method Details
-
renderStatusLights
protected void renderStatusLights(RealmsServer serverData, GuiGraphics graphics, int rowRight, int rowTop, int mouseX, int mouseY) -
drawRealmStatus
private void drawRealmStatus(GuiGraphics graphics, int x, int y, int xm, int ym, Identifier sprite, Supplier<Component> tooltip) -
renderFirstLine
protected void renderFirstLine(GuiGraphics graphics, int rowTop, int rowLeft, int rowWidth, int serverNameColor, RealmsServer serverData) -
renderSecondLine
protected void renderSecondLine(GuiGraphics graphics, int rowTop, int rowLeft, int rowWidth, RealmsServer serverData) -
renderThirdLine
-
renderClampedString
protected void renderClampedString(GuiGraphics graphics, @Nullable String string, int x, int y, int maxX, int color) -
versionTextX
-
gameModeTextX
-
renderGameMode
protected int renderGameMode(RealmsServer server, GuiGraphics graphics, int rowLeft, int rowWidth, int firstLineY) -
firstLineY
protected int firstLineY(int rowTop) -
lineHeight
protected int lineHeight() -
textX
protected int textX(int rowLeft) -
secondLineY
protected int secondLineY(int firstLineY) -
thirdLineY
protected int thirdLineY(int firstLineY)
-