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 pLastScreen, RealmsServer pServerData, Screen pMainScreen)
  • Method Details

    • init

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

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

      private void deleteRealm()
    • getSubscription

      private void getSubscription(long pServerId)
    • localPresentation

      private static Component localPresentation(long pTime)
    • onClose

      public void onClose()
      Overrides:
      onClose in class Screen
    • render

      public void render(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick)
      Renders the graphical user interface (GUI) element.
      Specified by:
      render in interface Renderable
      Overrides:
      render in class Screen
      Parameters:
      pGuiGraphics - the GuiGraphics object used for rendering.
      pMouseX - the x-coordinate of the mouse cursor.
      pMouseY - the y-coordinate of the mouse cursor.
      pPartialTick - the partial tick time.
    • daysLeftPresentation

      private Component daysLeftPresentation(int pDaysLeft)