Package com.mojang.realmsclient
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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intprotected static final intprivate static final intprotected static final intFields inherited from class net.minecraft.client.gui.components.AbstractSelectionList.Entry
CONTENT_PADDING, list -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voiddrawRealmStatus(GuiGraphics guiGraphics, int x, int y, int mouseX, int mouseY, ResourceLocation spriteLocation, Supplier<Component> tooltipSupplier) protected intfirstLineY(int top) protected intgameModeTextX(int left, int width, Component component) protected intprotected voidrenderClampedString(GuiGraphics guiGraphics, String text, int minX, int y, int maxX, int color) protected voidrenderFirstLine(GuiGraphics guiGraphics, int top, int left, int width, int serverNameColor, RealmsServer server) protected intrenderGameMode(RealmsServer server, GuiGraphics guiGraphics, int left, int width, int firstLineY) protected voidrenderSecondLine(GuiGraphics guiGraphics, int top, int left, int width, RealmsServer server) protected voidrenderStatusLights(RealmsServer realmsServer, GuiGraphics guiGraphics, int x, int y, int mouseX, int mouseY) protected voidrenderThirdLine(GuiGraphics guiGraphics, int top, int left, RealmsServer server) protected intsecondLineY(int firstLineY) protected inttextX(int left) protected intthirdLineY(int firstLineY) protected intversionTextX(int left, int width, Component versionComponent) Methods inherited from class net.minecraft.client.gui.components.ObjectSelectionList.Entry
getNarration, mouseClicked, 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, renderContent, 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, keyPressed, 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
-
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
Entry()
-
-
Method Details
-
renderStatusLights
protected void renderStatusLights(RealmsServer realmsServer, GuiGraphics guiGraphics, int x, int y, int mouseX, int mouseY) -
drawRealmStatus
private void drawRealmStatus(GuiGraphics guiGraphics, int x, int y, int mouseX, int mouseY, ResourceLocation spriteLocation, Supplier<Component> tooltipSupplier) -
renderFirstLine
protected void renderFirstLine(GuiGraphics guiGraphics, int top, int left, int width, int serverNameColor, RealmsServer server) -
renderSecondLine
protected void renderSecondLine(GuiGraphics guiGraphics, int top, int left, int width, RealmsServer server) -
renderThirdLine
-
renderClampedString
protected void renderClampedString(GuiGraphics guiGraphics, @Nullable String text, int minX, int y, int maxX, int color) -
versionTextX
-
gameModeTextX
-
renderGameMode
protected int renderGameMode(RealmsServer server, GuiGraphics guiGraphics, int left, int width, int firstLineY) -
firstLineY
protected int firstLineY(int top) -
lineHeight
protected int lineHeight() -
textX
protected int textX(int left) -
secondLineY
protected int secondLineY(int firstLineY) -
thirdLineY
protected int thirdLineY(int firstLineY)
-