Class RealmsSubscriptionInfoScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Widget

public class RealmsSubscriptionInfoScreen extends RealmsScreen
  • Field Details

    • LOGGER

      static final org.apache.logging.log4j.Logger LOGGER
    • SUBSCRIPTION_TITLE

      private static final Component SUBSCRIPTION_TITLE
    • SUBSCRIPTION_START_LABEL

      private static final Component SUBSCRIPTION_START_LABEL
    • TIME_LEFT_LABEL

      private static final Component TIME_LEFT_LABEL
    • DAYS_LEFT_LABEL

      private static final Component DAYS_LEFT_LABEL
    • SUBSCRIPTION_EXPIRED_TEXT

      private static final Component SUBSCRIPTION_EXPIRED_TEXT
    • SUBSCRIPTION_LESS_THAN_A_DAY_TEXT

      private static final Component SUBSCRIPTION_LESS_THAN_A_DAY_TEXT
    • MONTH_SUFFIX

      private static final Component MONTH_SUFFIX
    • MONTHS_SUFFIX

      private static final Component MONTHS_SUFFIX
    • DAY_SUFFIX

      private static final Component DAY_SUFFIX
    • DAYS_SUFFIX

      private static final Component DAYS_SUFFIX
    • UNKNOWN

      private static final Component UNKNOWN
    • lastScreen

      private final Screen lastScreen
    • serverData

      final RealmsServer serverData
    • mainScreen

      final Screen mainScreen
    • daysLeft

      private Component daysLeft
    • startDate

      private Component startDate
    • type

      @Nullable private Subscription.SubscriptionType type
  • Constructor Details

    • RealmsSubscriptionInfoScreen

      public RealmsSubscriptionInfoScreen(Screen p_89979_, RealmsServer p_89980_, Screen p_89981_)
  • Method Details

    • init

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

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

      private void deleteRealm(boolean p_90012_)
    • getSubscription

      private void getSubscription(long p_89990_)
    • localPresentation

      private static Component localPresentation(long p_182539_)
    • removed

      public void removed()
      Overrides:
      removed in class Screen
    • keyPressed

      public boolean keyPressed(int p_89986_, int p_89987_, int p_89988_)
      Specified by:
      keyPressed in interface ContainerEventHandler
      Specified by:
      keyPressed in interface GuiEventListener
      Overrides:
      keyPressed in class Screen
    • render

      public void render(PoseStack p_89992_, int p_89993_, int p_89994_, float p_89995_)
      Specified by:
      render in interface Widget
      Overrides:
      render in class Screen
    • daysLeftPresentation

      private Component daysLeftPresentation(int p_89984_)