Class AddRealmPopupScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement

public class AddRealmPopupScreen extends RealmsScreen
  • Field Details

    • CLOSE_TEXT

      private static final Component CLOSE_TEXT
    • BACKGROUND_SPRITE

      private static final Identifier BACKGROUND_SPRITE
    • TRIAL_AVAILABLE_SPRITE

      private static final Identifier TRIAL_AVAILABLE_SPRITE
    • CROSS_BUTTON_SPRITES

      private static final WidgetSprites CROSS_BUTTON_SPRITES
    • IMAGE_WIDTH

      private static final int IMAGE_WIDTH
      See Also:
    • IMAGE_HEIGHT

      private static final int IMAGE_HEIGHT
      See Also:
    • BG_BORDER_SIZE

      private static final int BG_BORDER_SIZE
      See Also:
    • BUTTON_SPACING

      private static final int BUTTON_SPACING
      See Also:
    • PADDING

      private static final int PADDING
      See Also:
    • WIDTH

      private static final int WIDTH
      See Also:
    • HEIGHT

      private static final int HEIGHT
      See Also:
    • TEXT_WIDTH

      private static final int TEXT_WIDTH
      See Also:
    • BUTTON_WIDTH

      private static final int BUTTON_WIDTH
      See Also:
    • carouselImages

      private static List<Identifier> carouselImages
    • backgroundScreen

      private final Screen backgroundScreen
    • trialAvailable

      private final boolean trialAvailable
    • createTrialButton

      private @Nullable Button createTrialButton
    • carouselIndex

      private int carouselIndex
    • carouselTick

      private int carouselTick
  • Constructor Details

    • AddRealmPopupScreen

      public AddRealmPopupScreen(Screen backgroundScreen, boolean trialAvailable)
  • Method Details

    • updateCarouselImages

      public static void updateCarouselImages(ResourceManager resourceManager)
    • init

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

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

      public void render(GuiGraphics graphics, int mouseX, int mouseY, float a)
      Description copied from interface: Renderable
      Renders the graphical user interface (GUI) element.
      Specified by:
      render in interface Renderable
      Overrides:
      render in class Screen
      Parameters:
      graphics - the GuiGraphics object used for rendering.
      mouseX - the x-coordinate of the mouse cursor.
      mouseY - the y-coordinate of the mouse cursor.
      a - the partial tick time.
    • renderDiamond

      public static void renderDiamond(GuiGraphics graphics, Button button)
    • renderBackground

      public void renderBackground(GuiGraphics graphics, int mouseX, int mouseY, float a)
      Overrides:
      renderBackground in class Screen
    • left

      private int left()
    • top

      private int top()
    • right

      private int right()
    • bottom

      private int bottom()
    • onClose

      public void onClose()
      Overrides:
      onClose in class Screen