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 TypeMethodDescriptionprotected voidextractClampedString(GuiGraphicsExtractor graphics, @Nullable String string, int x, int y, int maxX, int color) protected voidextractFirstLine(GuiGraphicsExtractor graphics, int rowTop, int rowLeft, int rowWidth, int serverNameColor, RealmsServer serverData) protected intextractGameMode(RealmsServer server, GuiGraphicsExtractor graphics, int rowLeft, int rowWidth, int firstLineY) private voidextractRealmStatus(GuiGraphicsExtractor graphics, int x, int y, int xm, int ym, Identifier sprite, Supplier<Component> tooltip) protected voidextractSecondLine(GuiGraphicsExtractor graphics, int rowTop, int rowLeft, int rowWidth, RealmsServer serverData) protected voidextractStatusLights(RealmsServer serverData, GuiGraphicsExtractor graphics, int rowRight, int rowTop, int mouseX, int mouseY) protected voidextractThirdLine(GuiGraphicsExtractor graphics, int rowTop, int rowLeft, RealmsServer server) protected intfirstLineY(int rowTop) protected intgameModeTextX(int rowLeft, int rowWidth, Component versionComponent) protected intprotected 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
extractContent, getContentBottom, getContentHeight, getContentRight, getContentWidth, getContentX, getContentXMiddle, getContentY, getContentYMiddle, getHeight, getRectangle, getWidth, getX, getY, isFocused, isMouseOver, 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, preeditUpdated, 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
-
extractStatusLights
protected void extractStatusLights(RealmsServer serverData, GuiGraphicsExtractor graphics, int rowRight, int rowTop, int mouseX, int mouseY) -
extractRealmStatus
private void extractRealmStatus(GuiGraphicsExtractor graphics, int x, int y, int xm, int ym, Identifier sprite, Supplier<Component> tooltip) -
extractFirstLine
protected void extractFirstLine(GuiGraphicsExtractor graphics, int rowTop, int rowLeft, int rowWidth, int serverNameColor, RealmsServer serverData) -
extractSecondLine
protected void extractSecondLine(GuiGraphicsExtractor graphics, int rowTop, int rowLeft, int rowWidth, RealmsServer serverData) -
extractThirdLine
protected void extractThirdLine(GuiGraphicsExtractor graphics, int rowTop, int rowLeft, RealmsServer server) -
extractClampedString
protected void extractClampedString(GuiGraphicsExtractor graphics, @Nullable String string, int x, int y, int maxX, int color) -
versionTextX
-
gameModeTextX
-
extractGameMode
protected int extractGameMode(RealmsServer server, GuiGraphicsExtractor 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)
-