Class 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

abstract class RealmsMainScreen.Entry extends ObjectSelectionList.Entry<RealmsMainScreen.Entry>
  • Field Details

  • 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

      protected void renderThirdLine(GuiGraphics guiGraphics, int top, int left, RealmsServer server)
    • renderClampedString

      protected void renderClampedString(GuiGraphics guiGraphics, String text, int minX, int y, int maxX, int color)
    • versionTextX

      protected int versionTextX(int left, int width, Component versionComponent)
    • 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)