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
,NarrationSupplier
- Direct Known Subclasses:
RealmsMainScreen.AvailableSnapshotEntry
,RealmsMainScreen.ButtonEntry
,RealmsMainScreen.EmptyEntry
,RealmsMainScreen.NotificationMessageEntry
,RealmsMainScreen.ParentEntry
,RealmsMainScreen.ServerEntry
- Enclosing class:
RealmsMainScreen
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final int
protected static final int
private static final int
protected static final int
Fields inherited from class net.minecraft.client.gui.components.AbstractSelectionList.Entry
list
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
drawRealmStatus
(GuiGraphics pGuiGraphics, int pX, int pY, int pMouseX, int pMouseY, ResourceLocation pSpriteLocation, Supplier<Component> pTooltipSupplier) protected int
firstLineY
(int pTop) protected int
protected void
renderClampedString
(GuiGraphics pGuiGraphics, String pText, int pMinX, int pY, int pMaxX, int pColor) protected void
renderStatusLights
(RealmsServer pRealmsServer, GuiGraphics pGuiGraphics, int pX, int pY, int pMouseX, int pMouseY) protected void
renderThirdLine
(GuiGraphics pGuiGraphics, int pTop, int pLeft, RealmsServer pServer) protected int
secondLineY
(int pFirstLineY) protected int
textX
(int pLeft) protected int
thirdLineY
(int pFirstLineY) protected int
versionTextX
(int pLeft, int pWidth, Component pVersionComponent) Methods inherited from class net.minecraft.client.gui.components.ObjectSelectionList.Entry
getNarration, mouseClicked, updateNarration
Methods inherited from class net.minecraft.client.gui.components.AbstractSelectionList.Entry
isFocused, isMouseOver, render, renderBack, setFocused
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
charTyped, getCurrentFocusPath, getRectangle, keyPressed, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled, nextFocusPath
Methods 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) -
renderThirdLine
-
renderClampedString
protected void renderClampedString(GuiGraphics pGuiGraphics, String pText, int pMinX, int pY, int pMaxX, int pColor) -
versionTextX
-
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)
-