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
    • warningLabel

      @Nullable private TitleScreen.WarningLabel warningLabel
    • logoRenderer

      private final LogoRenderer logoRenderer
  • 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_)
      Description copied from class: Screen
      Neo: mixins targeting this method won't fire for container screens as AbstractContainerScreen.render(net.minecraft.client.gui.GuiGraphics, int, int, float) replicates this method in place of a super call to insert an event
      Specified by:
      render in interface Renderable
      Overrides:
      render in class Screen
    • fadeWidgets

      private void fadeWidgets(float p_341352_)
    • renderBackground

      public void renderBackground(GuiGraphics p_294355_, int p_295208_, int p_294981_, float p_294740_)
      Overrides:
      renderBackground in class Screen
    • renderPanorama

      protected void renderPanorama(GuiGraphics p_330491_, float p_331140_)
      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_)