Class TitleScreen

All Implemented Interfaces:
Drawable, Element, Navigable, ParentElement

@Environment(CLIENT) public class TitleScreen extends Screen
Mappings:
Namespace Name
named net/minecraft/client/gui/screen/TitleScreen
intermediary net/minecraft/class_442
official fnk
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/client/gui/screen/TitleScreen;LOGGER:Lorg/slf4j/Logger;
      intermediary field_23775 Lnet/minecraft/class_442;field_23775:Lorg/slf4j/Logger;
      official a Lfnk;a:Lorg/slf4j/Logger;
    • NARRATOR_SCREEN_TITLE

      private static final Text NARRATOR_SCREEN_TITLE
      Mappings:
      Namespace Name Mixin selector
      named NARRATOR_SCREEN_TITLE Lnet/minecraft/client/gui/screen/TitleScreen;NARRATOR_SCREEN_TITLE:Lnet/minecraft/text/Text;
      intermediary field_47850 Lnet/minecraft/class_442;field_47850:Lnet/minecraft/class_2561;
      official b Lfnk;b:Lxp;
    • DEMO_WORLD_NAME

      private static final String DEMO_WORLD_NAME
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DEMO_WORLD_NAME Lnet/minecraft/client/gui/screen/TitleScreen;DEMO_WORLD_NAME:Ljava/lang/String;
      intermediary field_32272 Lnet/minecraft/class_442;field_32272:Ljava/lang/String;
      official d Lfnk;d:Ljava/lang/String;
    • field_49900

      private static final float field_49900
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_49900 Lnet/minecraft/client/gui/screen/TitleScreen;field_49900:F
      intermediary field_49900 Lnet/minecraft/class_442;field_49900:F
      official r Lfnk;r:F
    • splashText

      Mappings:
      Namespace Name Mixin selector
      named splashText Lnet/minecraft/client/gui/screen/TitleScreen;splashText:Lnet/minecraft/client/gui/screen/SplashTextRenderer;
      intermediary field_2586 Lnet/minecraft/class_442;field_2586:Lnet/minecraft/class_8519;
      official s Lfnk;s:Lfik;
    • buttonResetDemo

      private ButtonWidget buttonResetDemo
      Mappings:
      Namespace Name Mixin selector
      named buttonResetDemo Lnet/minecraft/client/gui/screen/TitleScreen;buttonResetDemo:Lnet/minecraft/client/gui/widget/ButtonWidget;
      intermediary field_2590 Lnet/minecraft/class_442;field_2590:Lnet/minecraft/class_4185;
      official u Lfnk;u:Lfhg;
    • realmsNotificationGui

      @Nullable private @Nullable RealmsNotificationsScreen realmsNotificationGui
      Mappings:
      Namespace Name Mixin selector
      named realmsNotificationGui Lnet/minecraft/client/gui/screen/TitleScreen;realmsNotificationGui:Lnet/minecraft/client/realms/gui/screen/RealmsNotificationsScreen;
      intermediary field_2592 Lnet/minecraft/class_442;field_2592:Lnet/minecraft/class_4399;
      official v Lfnk;v:Lfcz;
    • backgroundAlpha

      private float backgroundAlpha
      Mappings:
      Namespace Name Mixin selector
      named backgroundAlpha Lnet/minecraft/client/gui/screen/TitleScreen;backgroundAlpha:F
      intermediary field_49514 Lnet/minecraft/class_442;field_49514:F
      official w Lfnk;w:F
    • doBackgroundFade

      private boolean doBackgroundFade
      Mappings:
      Namespace Name Mixin selector
      named doBackgroundFade Lnet/minecraft/client/gui/screen/TitleScreen;doBackgroundFade:Z
      intermediary field_18222 Lnet/minecraft/class_442;field_18222:Z
      official x Lfnk;x:Z
    • backgroundFadeStart

      private long backgroundFadeStart
      Mappings:
      Namespace Name Mixin selector
      named backgroundFadeStart Lnet/minecraft/client/gui/screen/TitleScreen;backgroundFadeStart:J
      intermediary field_17772 Lnet/minecraft/class_442;field_17772:J
      official y Lfnk;y:J
    • deprecationNotice

      Mappings:
      Namespace Name Mixin selector
      named deprecationNotice Lnet/minecraft/client/gui/screen/TitleScreen;deprecationNotice:Lnet/minecraft/client/gui/screen/TitleScreen$DeprecationNotice;
      intermediary field_37209 Lnet/minecraft/class_442;field_37209:Lnet/minecraft/class_442$class_7063;
      official z Lfnk;z:Lfnk$a;
    • logoDrawer

      private final LogoDrawer logoDrawer
      Mappings:
      Namespace Name Mixin selector
      named logoDrawer Lnet/minecraft/client/gui/screen/TitleScreen;logoDrawer:Lnet/minecraft/client/gui/LogoDrawer;
      intermediary field_41847 Lnet/minecraft/class_442;field_41847:Lnet/minecraft/class_8020;
      official A Lfnk;A:Lfhx;
  • Constructor Details

    • TitleScreen

      public TitleScreen()
    • TitleScreen

      public TitleScreen(boolean doBackgroundFade)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gui/screen/TitleScreen;<init>(Z)V
      intermediary <init> Lnet/minecraft/class_442;<init>(Z)V
      official <init> Lfnk;<init>(Z)V
    • TitleScreen

      public TitleScreen(boolean doBackgroundFade, @Nullable @Nullable LogoDrawer logoDrawer)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gui/screen/TitleScreen;<init>(ZLnet/minecraft/client/gui/LogoDrawer;)V
      intermediary <init> Lnet/minecraft/class_442;<init>(ZLnet/minecraft/class_8020;)V
      official <init> Lfnk;<init>(ZLfhx;)V
  • Method Details

    • isRealmsNotificationsGuiDisplayed

      private boolean isRealmsNotificationsGuiDisplayed()
      Mappings:
      Namespace Name Mixin selector
      named isRealmsNotificationsGuiDisplayed Lnet/minecraft/client/gui/screen/TitleScreen;isRealmsNotificationsGuiDisplayed()Z
      intermediary method_2253 Lnet/minecraft/class_442;method_2253()Z
      official m Lfnk;m()Z
    • tick

      public void tick()
      Overrides:
      tick in class Screen
      Mappings:
      Namespace Name Mixin selector
      named tick Lnet/minecraft/client/gui/screen/Screen;tick()V
      intermediary method_25393 Lnet/minecraft/class_437;method_25393()V
      official e Lfnf;e()V
    • loadTexturesAsync

      public static CompletableFuture<Void> loadTexturesAsync(TextureManager textureManager, Executor executor)
      Mappings:
      Namespace Name Mixin selector
      named loadTexturesAsync Lnet/minecraft/client/gui/screen/TitleScreen;loadTexturesAsync(Lnet/minecraft/client/texture/TextureManager;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_18105 Lnet/minecraft/class_442;method_18105(Lnet/minecraft/class_1060;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
      official a Lfnk;a(Lgpc;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
    • shouldPause

      public boolean shouldPause()
      Overrides:
      shouldPause in class Screen
      Mappings:
      Namespace Name Mixin selector
      named shouldPause Lnet/minecraft/client/gui/screen/Screen;shouldPause()Z
      intermediary method_25421 Lnet/minecraft/class_437;method_25421()Z
      official k Lfnf;k()Z
    • shouldCloseOnEsc

      public boolean shouldCloseOnEsc()
      Checks whether this screen should be closed when the escape key is pressed.
      Overrides:
      shouldCloseOnEsc in class Screen
      Mappings:
      Namespace Name Mixin selector
      named shouldCloseOnEsc Lnet/minecraft/client/gui/screen/Screen;shouldCloseOnEsc()Z
      intermediary method_25422 Lnet/minecraft/class_437;method_25422()Z
      official aC_ Lfnf;aC_()Z
    • init

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

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

      This should call Screen.setInitialFocus() to set the element that is initially focused.

      Overrides:
      init in class Screen
      Mappings:
      Namespace Name Mixin selector
      named init Lnet/minecraft/client/gui/screen/Screen;init()V
      intermediary method_25426 Lnet/minecraft/class_437;method_25426()V
      official aM_ Lfnf;aM_()V
    • initWidgetsNormal

      private void initWidgetsNormal(int y, int spacingY)
      Mappings:
      Namespace Name Mixin selector
      named initWidgetsNormal Lnet/minecraft/client/gui/screen/TitleScreen;initWidgetsNormal(II)V
      intermediary method_2249 Lnet/minecraft/class_442;method_2249(II)V
      official a Lfnk;a(II)V
    • getMultiplayerDisabledText

      @Nullable private @Nullable Text getMultiplayerDisabledText()
      Mappings:
      Namespace Name Mixin selector
      named getMultiplayerDisabledText Lnet/minecraft/client/gui/screen/TitleScreen;getMultiplayerDisabledText()Lnet/minecraft/text/Text;
      intermediary method_44692 Lnet/minecraft/class_442;method_44692()Lnet/minecraft/class_2561;
      official E Lfnk;E()Lxp;
    • initWidgetsDemo

      private void initWidgetsDemo(int y, int spacingY)
      Mappings:
      Namespace Name Mixin selector
      named initWidgetsDemo Lnet/minecraft/client/gui/screen/TitleScreen;initWidgetsDemo(II)V
      intermediary method_2251 Lnet/minecraft/class_442;method_2251(II)V
      official b Lfnk;b(II)V
    • canReadDemoWorldData

      private boolean canReadDemoWorldData()
      Mappings:
      Namespace Name Mixin selector
      named canReadDemoWorldData Lnet/minecraft/client/gui/screen/TitleScreen;canReadDemoWorldData()Z
      intermediary method_31129 Lnet/minecraft/class_442;method_31129()Z
      official F Lfnk;F()Z
    • render

      public void render(DrawContext context, int mouseX, int mouseY, float delta)
      Specified by:
      render in interface Drawable
      Overrides:
      render in class Screen
      Mappings:
      Namespace Name Mixin selector
      named render Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)V
      intermediary method_25394 Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)V
      official a Lfij;a(Lfgt;IIF)V
    • setWidgetAlpha

      private void setWidgetAlpha(float alpha)
      Mappings:
      Namespace Name Mixin selector
      named setWidgetAlpha Lnet/minecraft/client/gui/screen/TitleScreen;setWidgetAlpha(F)V
      intermediary method_59752 Lnet/minecraft/class_442;method_59752(F)V
      official b Lfnk;b(F)V
    • renderBackground

      public void renderBackground(DrawContext context, int mouseX, int mouseY, float delta)
      Renders the background of this screen.

      If the client is in a world, renders the translucent background gradient. Otherwise renders the background texture.

      Overrides:
      renderBackground in class Screen
      Mappings:
      Namespace Name Mixin selector
      named renderBackground Lnet/minecraft/client/gui/screen/Screen;renderBackground(Lnet/minecraft/client/gui/DrawContext;IIF)V
      intermediary method_25420 Lnet/minecraft/class_437;method_25420(Lnet/minecraft/class_332;IIF)V
      official b Lfnf;b(Lfgt;IIF)V
    • renderPanoramaBackground

      protected void renderPanoramaBackground(DrawContext context, float delta)
      Overrides:
      renderPanoramaBackground in class Screen
      Mappings:
      Namespace Name Mixin selector
      named renderPanoramaBackground Lnet/minecraft/client/gui/screen/Screen;renderPanoramaBackground(Lnet/minecraft/client/gui/DrawContext;F)V
      intermediary method_57728 Lnet/minecraft/class_437;method_57728(Lnet/minecraft/class_332;F)V
      official a Lfnf;a(Lfgt;F)V
    • 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:
      Mappings:
      Namespace Name Mixin selector
      named mouseClicked Lnet/minecraft/client/gui/Element;mouseClicked(DDI)Z
      intermediary method_25402 Lnet/minecraft/class_364;method_25402(DDI)Z
      official a Lfjc;a(DDI)Z
    • removed

      public void removed()
      Overrides:
      removed in class Screen
      Mappings:
      Namespace Name Mixin selector
      named removed Lnet/minecraft/client/gui/screen/Screen;removed()V
      intermediary method_25432 Lnet/minecraft/class_437;method_25432()V
      official j Lfnf;j()V
    • onDisplayed

      public void onDisplayed()
      Called when the screen is displayed using
      invalid reference
      MinecraftClient#setScreen
      before init() or Screen.initTabNavigation() is called.
      Overrides:
      onDisplayed in class Screen
      Mappings:
      Namespace Name Mixin selector
      named onDisplayed Lnet/minecraft/client/gui/screen/Screen;onDisplayed()V
      intermediary method_49589 Lnet/minecraft/class_437;method_49589()V
      official aE_ Lfnf;aE_()V
    • onDemoDeletionConfirmed

      private void onDemoDeletionConfirmed(boolean delete)
      Mappings:
      Namespace Name Mixin selector
      named onDemoDeletionConfirmed Lnet/minecraft/client/gui/screen/TitleScreen;onDemoDeletionConfirmed(Z)V
      intermediary method_20375 Lnet/minecraft/class_442;method_20375(Z)V
      official c Lfnk;c(Z)V