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

      protected void repositionElements()
      Overrides:
      repositionElements in class Screen
    • 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(@Nullable RealmsServer p_86563_)
    • shouldRenewButtonBeActive

      private boolean shouldRenewButtonBeActive(@Nullable RealmsServer p_86595_)
    • shouldConfigureButtonBeActive

      private boolean shouldConfigureButtonBeActive(@Nullable RealmsServer p_86620_)
    • shouldLeaveButtonBeActive

      private boolean shouldLeaveButtonBeActive(@Nullable RealmsServer p_86645_)
    • tick

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

      public static void refreshPendingInvites()
    • refreshServerList

      public void refreshServerList()
    • initDataFetcher

      private DataFetcher.Subscription initDataFetcher(RealmsDataFetcher p_238836_)
    • callRealmsClient

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

      private void refreshRealmsSelectionList()
    • addEntriesForNotification

      private void addEntriesForNotification(RealmsMainScreen.RealmSelectionList p_275392_, RealmsNotification p_275492_)
    • 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_)
    • removeServer

      void removeServer(RealmsServer p_86677_)
    • 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_)
    • 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_)