Class TitleScreen

All Implemented Interfaces:
Drawable, Element, ParentElement, TickableElement

@Environment(CLIENT)
public class TitleScreen
extends Screen
  • Field Details

    • field_23775

      private static final Logger field_23775
    • PANORAMA_CUBE_MAP

      public static final CubeMapRenderer PANORAMA_CUBE_MAP
    • PANORAMA_OVERLAY

      private static final Identifier PANORAMA_OVERLAY
    • ACCESSIBILITY_ICON_TEXTURE

      private static final Identifier ACCESSIBILITY_ICON_TEXTURE
    • MINECRAFT_TITLE_TEXTURE

      private static final Identifier MINECRAFT_TITLE_TEXTURE
    • EDITION_TITLE_TEXTURE

      private static final Identifier EDITION_TITLE_TEXTURE
    • isMinceraft

      private final boolean isMinceraft
    • splashText

      @Nullable private String splashText
    • buttonResetDemo

      private ButtonWidget buttonResetDemo
    • realmsNotificationsInitialized

      private boolean realmsNotificationsInitialized
    • realmsNotificationGui

      private Screen realmsNotificationGui
    • copyrightTextWidth

      private int copyrightTextWidth
    • copyrightTextX

      private int copyrightTextX
    • backgroundRenderer

      private final RotatingCubeMapRenderer backgroundRenderer
    • doBackgroundFade

      private final boolean doBackgroundFade
    • backgroundFadeStart

      private long backgroundFadeStart
  • Constructor Details

    • TitleScreen

      public TitleScreen()
    • TitleScreen

      public TitleScreen​(boolean doBackgroundFade)
  • Method Details

    • areRealmsNotificationsEnabled

      private boolean areRealmsNotificationsEnabled()
    • tick

      public void tick()
      Specified by:
      tick in interface TickableElement
      Overrides:
      tick in class Screen
    • loadTexturesAsync

      public static CompletableFuture<Void> loadTexturesAsync​(TextureManager textureManager, Executor executor)
    • isPauseScreen

      public boolean isPauseScreen()
      Overrides:
      isPauseScreen in class Screen
    • shouldCloseOnEsc

      public boolean shouldCloseOnEsc()
      Checks whether this screen should be closed when the escape key is pressed.
      Overrides:
      shouldCloseOnEsc in class Screen
    • init

      protected void init()
      Called when a screen should be initialized.

      This method is called when this screen is opened or resized.

      Overrides:
      init in class Screen
    • initWidgetsNormal

      private void initWidgetsNormal​(int y, int spacingY)
    • initWidgetsDemo

      private void initWidgetsDemo​(int y, int spacingY)
    • method_31129

      private boolean method_31129()
    • switchToRealms

      private void switchToRealms()
    • render

      public void render​(MatrixStack matrices, int mouseX, int mouseY, float delta)
      Specified by:
      render in interface Drawable
      Overrides:
      render in class Screen
    • mouseClicked

      public boolean mouseClicked​(double mouseX, double mouseY, int button)
      Callback for when a mouse button down event has been captured. The button number is identified by the constants in GLFW class.
      Parameters:
      mouseX - the X coordinate of the mouse
      mouseY - the Y coordinate of the mouse
      button - the mouse button number
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mouse.onMouseButton(long, int, int, int), GLFW.GLFW_MOUSE_BUTTON_1
    • removed

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

      private void onDemoDeletionConfirmed​(boolean delete)