Class RealmsSubscriptionInfoScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement

public class RealmsSubscriptionInfoScreen extends RealmsScreen
  • Field Details

    • LOGGER

      static final org.slf4j.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
    • UNKNOWN

      private static final Component UNKNOWN
    • RECURRING_INFO

      private static final Component RECURRING_INFO
    • 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_)
    • 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(GuiGraphics p_282831_, int p_281266_, int p_281799_, float p_282330_)
      Specified by:
      render in interface Renderable
      Overrides:
      render in class Screen
    • daysLeftPresentation

      private Component daysLeftPresentation(int p_89984_)