Class RealmsMainScreen.Entry

All Implemented Interfaces:
GuiEventListener, TabOrderedElement, LayoutElement, NarrationSupplier
Direct Known Subclasses:
RealmsMainScreen.AvailableSnapshotEntry, RealmsMainScreen.NotificationMessageEntry, RealmsMainScreen.ParentEntry, RealmsMainScreen.ServerEntry
Enclosing class:
RealmsMainScreen

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

  • Constructor Details

    • Entry

      private Entry()
  • Method Details

    • extractStatusLights

      protected void extractStatusLights(RealmsServer serverData, GuiGraphicsExtractor graphics, int rowRight, int rowTop, int mouseX, int mouseY)
    • extractRealmStatus

      private void extractRealmStatus(GuiGraphicsExtractor graphics, int x, int y, int xm, int ym, Identifier sprite, Supplier<Component> tooltip)
    • extractFirstLine

      protected void extractFirstLine(GuiGraphicsExtractor graphics, int rowTop, int rowLeft, int rowWidth, int serverNameColor, RealmsServer serverData)
    • extractSecondLine

      protected void extractSecondLine(GuiGraphicsExtractor graphics, int rowTop, int rowLeft, int rowWidth, RealmsServer serverData)
    • extractThirdLine

      protected void extractThirdLine(GuiGraphicsExtractor graphics, int rowTop, int rowLeft, RealmsServer server)
    • extractClampedString

      protected void extractClampedString(GuiGraphicsExtractor graphics, @Nullable String string, int x, int y, int maxX, int color)
    • versionTextX

      protected int versionTextX(int rowLeft, int rowWidth, Component versionComponent)
    • gameModeTextX

      protected int gameModeTextX(int rowLeft, int rowWidth, Component versionComponent)
    • extractGameMode

      protected int extractGameMode(RealmsServer server, GuiGraphicsExtractor graphics, int rowLeft, int rowWidth, int firstLineY)
    • firstLineY

      protected int firstLineY(int rowTop)
    • lineHeight

      protected int lineHeight()
    • textX

      protected int textX(int rowLeft)
    • secondLineY

      protected int secondLineY(int firstLineY)
    • thirdLineY

      protected int thirdLineY(int firstLineY)