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 pGuiGraphics, int pX, int pY, int pMouseX, int pMouseY, ResourceLocation pSpriteLocation, Supplier<Component> pTooltipSupplier) protected intfirstLineY(int pTop) protected intgameModeTextX(int pLeft, int pWidth, Component pComponent) protected intprotected voidrenderClampedString(GuiGraphics pGuiGraphics, String pText, int pMinX, int pY, int pMaxX, int pColor) protected voidrenderFirstLine(GuiGraphics pGuiGraphics, int pTop, int pLeft, int pWidth, int pServerNameColor, RealmsServer pServer) protected intrenderGameMode(RealmsServer pServer, GuiGraphics pGuiGraphics, int pLeft, int pWidth, int pFirstLineY) protected voidrenderSecondLine(GuiGraphics pGuiGraphics, int pTop, int pLeft, int pWidth, RealmsServer pServer) protected voidrenderStatusLights(RealmsServer pRealmsServer, GuiGraphics pGuiGraphics, int pX, int pY, int pMouseX, int pMouseY) protected voidrenderThirdLine(GuiGraphics pGuiGraphics, int pTop, int pLeft, RealmsServer pServer) protected intsecondLineY(int pFirstLineY) protected inttextX(int pLeft) protected intthirdLineY(int pFirstLineY) protected intversionTextX(int pLeft, int pWidth, Component pVersionComponent) 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 pRealmsServer, GuiGraphics pGuiGraphics, int pX, int pY, int pMouseX, int pMouseY) -
drawRealmStatus
private void drawRealmStatus(GuiGraphics pGuiGraphics, int pX, int pY, int pMouseX, int pMouseY, ResourceLocation pSpriteLocation, Supplier<Component> pTooltipSupplier) -
renderFirstLine
protected void renderFirstLine(GuiGraphics pGuiGraphics, int pTop, int pLeft, int pWidth, int pServerNameColor, RealmsServer pServer) -
renderSecondLine
protected void renderSecondLine(GuiGraphics pGuiGraphics, int pTop, int pLeft, int pWidth, RealmsServer pServer) -
renderThirdLine
-
renderClampedString
protected void renderClampedString(GuiGraphics pGuiGraphics, @Nullable String pText, int pMinX, int pY, int pMaxX, int pColor) -
versionTextX
-
gameModeTextX
-
renderGameMode
protected int renderGameMode(RealmsServer pServer, GuiGraphics pGuiGraphics, int pLeft, int pWidth, int pFirstLineY) -
firstLineY
protected int firstLineY(int pTop) -
lineHeight
protected int lineHeight() -
textX
protected int textX(int pLeft) -
secondLineY
protected int secondLineY(int pFirstLineY) -
thirdLineY
protected int thirdLineY(int pFirstLineY)
-