Class RealmsSubscriptionInfoScreen

All Implemented Interfaces:
IGuiEventListener, INestedGuiEventHandler, IRenderable, IScreen

public class RealmsSubscriptionInfoScreen extends RealmsScreen
  • Field Details

    • LOGGER

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

      private static final ITextComponent SUBSCRIPTION_TITLE
    • SUBSCRIPTION_START_LABEL

      private static final ITextComponent SUBSCRIPTION_START_LABEL
    • TIME_LEFT_LABEL

      private static final ITextComponent TIME_LEFT_LABEL
    • DAYS_LEFT_LABEL

      private static final ITextComponent DAYS_LEFT_LABEL
    • SUBSCRIPTION_EXPIRED_TEXT

      private static final ITextComponent SUBSCRIPTION_EXPIRED_TEXT
    • SUBSCRIPTION_LESS_THAN_A_DAY_TEXT

      private static final ITextComponent SUBSCRIPTION_LESS_THAN_A_DAY_TEXT
    • MONTH_SUFFIX

      private static final ITextComponent MONTH_SUFFIX
    • MONTHS_SUFFIX

      private static final ITextComponent MONTHS_SUFFIX
    • DAY_SUFFIX

      private static final ITextComponent DAY_SUFFIX
    • DAYS_SUFFIX

      private static final ITextComponent DAYS_SUFFIX
    • lastScreen

      private final Screen lastScreen
    • serverData

      private final RealmsServer serverData
    • mainScreen

      private final Screen mainScreen
    • daysLeft

      private ITextComponent daysLeft
    • startDate

      private String startDate
    • type

      private Subscription.Type type
  • Constructor Details

    • RealmsSubscriptionInfoScreen

      public RealmsSubscriptionInfoScreen(Screen p_i232223_1_, RealmsServer p_i232223_2_, Screen p_i232223_3_)
  • Method Details

    • init

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

      private void deleteRealm(boolean p_238074_1_)
    • getSubscription

      private void getSubscription(long p_224573_1_)
    • localPresentation

      private static String localPresentation(long p_224574_0_)
    • removed

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

      public boolean keyPressed(int p_231046_1_, int p_231046_2_, int p_231046_3_)
      Specified by:
      keyPressed in interface IGuiEventListener
      Specified by:
      keyPressed in interface INestedGuiEventHandler
      Overrides:
      keyPressed in class Screen
    • render

      public void render(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_)
      Specified by:
      render in interface IRenderable
      Overrides:
      render in class Screen
    • daysLeftPresentation

      private ITextComponent daysLeftPresentation(int p_224576_1_)