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 intprotected static final intprivate static final intprotected static final intFields inherited from class net.minecraft.client.gui.components.AbstractSelectionList.Entry
listFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
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 intprotected voidrenderClampedString(GuiGraphics guiGraphics, String text, int minX, int y, int maxX, int color) 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
isFocused, isMouseOver, render, renderBack, setFocusedMethods 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, getCurrentFocusPath, getRectangle, keyPressed, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled, nextFocusPathMethods 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) -
renderThirdLine
-
renderClampedString
protected void renderClampedString(GuiGraphics guiGraphics, String text, int minX, int y, int maxX, int color) -
versionTextX
-
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)
-