Class TitleScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement

public class TitleScreen extends Screen
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • TITLE

      private static final Component TITLE
    • DEMO_LEVEL_ID

      private static final String DEMO_LEVEL_ID
      See Also:
    • FADE_IN_TIME

      private static final float FADE_IN_TIME
      See Also:
    • splash

      @Nullable private SplashRenderer splash
    • resetDemoButton

      private Button resetDemoButton
    • realmsNotificationsScreen

      @Nullable private RealmsNotificationsScreen realmsNotificationsScreen
    • panoramaFade

      private float panoramaFade
    • fading

      private boolean fading
    • fadeInStart

      private long fadeInStart
    • logoRenderer

      private final LogoRenderer logoRenderer
    • modUpdateNotification

      private TitleScreenModUpdateIndicator modUpdateNotification
  • Constructor Details

    • TitleScreen

      public TitleScreen()
    • TitleScreen

      public TitleScreen(boolean p_96733_)
    • TitleScreen

      public TitleScreen(boolean p_265779_, @Nullable LogoRenderer p_265067_)
  • Method Details

    • realmsNotificationsEnabled

      private boolean realmsNotificationsEnabled()
    • tick

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

      public static CompletableFuture<Void> preloadResources(TextureManager p_96755_, Executor p_96756_)
    • isPauseScreen

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

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

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

      private void createNormalMenuOptions(int p_96764_, int p_96765_)
    • getMultiplayerDisabledReason

      @Nullable private Component getMultiplayerDisabledReason()
    • createDemoMenuOptions

      private void createDemoMenuOptions(int p_96773_, int p_96774_)
    • checkDemoWorldPresence

      private boolean checkDemoWorldPresence()
    • render

      public void render(GuiGraphics p_282860_, int p_281753_, int p_283539_, float p_282628_)
      Specified by:
      render in interface Renderable
      Overrides:
      render in class Screen
    • fadeWidgets

      private void fadeWidgets(float p_335005_)
    • renderBackground

      public void renderBackground(GuiGraphics p_301363_, int p_300303_, int p_299762_, float p_300311_)
      Overrides:
      renderBackground in class Screen
    • renderPanorama

      protected void renderPanorama(GuiGraphics p_335595_, float p_331154_)
      Overrides:
      renderPanorama in class Screen
    • mouseClicked

      public boolean mouseClicked(double p_96735_, double p_96736_, int p_96737_)
    • removed

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

      public void added()
      Overrides:
      added in class Screen
    • confirmDemo

      private void confirmDemo(boolean p_96778_)