Class RealmsNotificationsScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Widget

public class RealmsNotificationsScreen extends RealmsScreen
  • Field Details

    • INVITE_ICON_LOCATION

      private static final ResourceLocation INVITE_ICON_LOCATION
    • TRIAL_ICON_LOCATION

      private static final ResourceLocation TRIAL_ICON_LOCATION
    • NEWS_ICON_LOCATION

      private static final ResourceLocation NEWS_ICON_LOCATION
    • realmsDataSubscription

      @Nullable private DataFetcher.Subscription realmsDataSubscription
    • numberOfPendingInvites

      private volatile int numberOfPendingInvites
    • checkedMcoAvailability

      static boolean checkedMcoAvailability
    • trialAvailable

      private static boolean trialAvailable
    • validClient

      static boolean validClient
    • hasUnreadNews

      private static boolean hasUnreadNews
  • Constructor Details

    • RealmsNotificationsScreen

      public RealmsNotificationsScreen()
  • Method Details

    • init

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

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

      private DataFetcher.Subscription initDataFetcher(RealmsDataFetcher p_238855_)
    • getRealmsNotificationsEnabled

      private boolean getRealmsNotificationsEnabled()
    • inTitleScreen

      private boolean inTitleScreen()
    • checkIfMcoEnabled

      private void checkIfMcoEnabled()
    • render

      public void render(PoseStack p_88837_, int p_88838_, int p_88839_, float p_88840_)
      Specified by:
      render in interface Widget
      Overrides:
      render in class Screen
    • drawIcons

      private void drawIcons(PoseStack p_88833_, int p_88834_, int p_88835_)