Class RealmsMainScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement

public class RealmsMainScreen extends RealmsScreen
  • Field Details

  • Constructor Details

    • RealmsMainScreen

      public RealmsMainScreen(Screen p_86315_)
  • Method Details

    • init

      public void init()
      Overrides:
      init in class Screen
    • isSnapshot

      public static boolean isSnapshot()
    • repositionElements

      protected void repositionElements()
      Overrides:
      repositionElements in class Screen
    • updateLayout

      private void updateLayout()
    • updateLayout

      private void updateLayout(RealmsMainScreen.LayoutState p_297284_)
    • createLayout

      private HeaderAndFooterLayout createLayout(RealmsMainScreen.LayoutState p_299759_)
    • createHeader

      private Layout createHeader()
    • createFooter

      private Layout createFooter(RealmsMainScreen.LayoutState p_299205_)
    • createNoRealmsContent

      private LinearLayout createNoRealmsContent()
    • updateButtonStates

      void updateButtonStates()
    • shouldPlayButtonBeActive

      boolean shouldPlayButtonBeActive(RealmsServer p_86563_)
    • shouldRenewButtonBeActive

      private boolean shouldRenewButtonBeActive(RealmsServer p_86595_)
    • shouldConfigureButtonBeActive

      private boolean shouldConfigureButtonBeActive(RealmsServer p_86620_)
    • shouldLeaveButtonBeActive

      private boolean shouldLeaveButtonBeActive(RealmsServer p_86645_)
    • tick

      public void tick()
      Overrides:
      tick in class Screen
    • refreshPendingInvites

      public static void refreshPendingInvites()
    • refreshServerList

      public static void refreshServerList()
    • debugRefreshDataFetchers

      private void debugRefreshDataFetchers()
    • initDataFetcher

      private DataFetcher.Subscription initDataFetcher(RealmsDataFetcher p_238836_)
    • markNotificationsAsSeen

      private void markNotificationsAsSeen(Collection<RealmsNotification> p_311351_)
    • callRealmsClient

      private static <T> void callRealmsClient(RealmsMainScreen.RealmsCall<T> p_275561_, Consumer<T> p_275686_)
    • refreshListAndLayout

      private void refreshListAndLayout()
    • addListEntriesForNotification

      private boolean addListEntriesForNotification(RealmsNotification p_310789_)
    • pingRegions

      private void pingRegions()
    • getOwnedNonExpiredWorldIds

      private List<Long> getOwnedNonExpiredWorldIds()
    • onRenew

      private void onRenew(@Nullable RealmsServer p_193500_)
    • configureClicked

      private void configureClicked(@Nullable RealmsServer p_86657_)
    • leaveClicked

      private void leaveClicked(@Nullable RealmsServer p_86670_)
    • getSelectedServer

      @Nullable private RealmsServer getSelectedServer()
    • leaveServer

      private void leaveServer(boolean p_193494_, RealmsServer p_193495_)
    • dismissNotification

      void dismissNotification(UUID p_275349_)
    • resetScreen

      public void resetScreen()
    • getNarrationMessage

      public Component getNarrationMessage()
      Overrides:
      getNarrationMessage in class Screen
    • render

      public void render(GuiGraphics p_282736_, int p_283347_, int p_282480_, float p_283485_)
      Specified by:
      render in interface Renderable
      Overrides:
      render in class Screen
    • openTrialAvailablePopup

      private void openTrialAvailablePopup()
    • play

      public static void play(@Nullable RealmsServer p_86516_, Screen p_86517_)
    • play

      public static void play(@Nullable RealmsServer p_312669_, Screen p_310591_, boolean p_309776_)
    • confirmToPlay

      private static void confirmToPlay(RealmsServer p_311893_, Screen p_310296_, Component p_309987_, Component p_309434_, Component p_311253_)
    • getVersionComponent

      public static Component getVersionComponent(String p_312049_, boolean p_312280_)
    • getVersionComponent

      public static Component getVersionComponent(String p_311695_, int p_311083_)
    • isSelfOwnedServer

      boolean isSelfOwnedServer(RealmsServer p_86684_)
    • isSelfOwnedNonExpiredServer

      private boolean isSelfOwnedNonExpiredServer(RealmsServer p_86689_)
    • renderEnvironment

      private void renderEnvironment(GuiGraphics p_298843_, String p_299597_, int p_300122_)