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 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

      protected void renderThirdLine(GuiGraphics pGuiGraphics, int pTop, int pLeft, RealmsServer pServer)
    • renderClampedString

      protected void renderClampedString(GuiGraphics pGuiGraphics, String pText, int pMinX, int pY, int pMaxX, int pColor)
    • versionTextX

      protected int versionTextX(int pLeft, int pWidth, Component pVersionComponent)
    • 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)