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_294474_)
    • createLayout

      private HeaderAndFooterLayout createLayout(RealmsMainScreen.LayoutState p_295052_)
    • createHeader

      private Layout createHeader()
    • createFooter

      private Layout createFooter(RealmsMainScreen.LayoutState p_294561_)
    • 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_304698_)
    • 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_304511_)
    • 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_305964_, Screen p_305959_, boolean p_306296_)
    • confirmToPlay

      private static void confirmToPlay(RealmsServer p_305792_, Screen p_306263_, Component p_305782_, Component p_306311_, Component p_306238_)
    • getVersionComponent

      public static Component getVersionComponent(String p_307541_, boolean p_307256_)
    • getVersionComponent

      public static Component getVersionComponent(String p_307429_, int p_307536_)
    • isSelfOwnedServer

      boolean isSelfOwnedServer(RealmsServer p_86684_)
    • isSelfOwnedNonExpiredServer

      private boolean isSelfOwnedNonExpiredServer(RealmsServer p_86689_)
    • renderEnvironment

      private void renderEnvironment(GuiGraphics p_294591_, String p_295050_, int p_294351_)