Class MainMenuScreen

All Implemented Interfaces:
IGuiEventListener, INestedGuiEventHandler, IRenderable, IScreen

public class MainMenuScreen extends Screen
  • Field Details

    • LOGGER

      private static final org.apache.logging.log4j.Logger LOGGER
    • CUBE_MAP

      public static final RenderSkyboxCube CUBE_MAP
    • PANORAMA_OVERLAY

      private static final ResourceLocation PANORAMA_OVERLAY
    • ACCESSIBILITY_TEXTURE

      private static final ResourceLocation ACCESSIBILITY_TEXTURE
    • minceraftEasterEgg

      private final boolean minceraftEasterEgg
    • splash

      @Nullable private String splash
    • resetDemoButton

      private Button resetDemoButton
    • MINECRAFT_EDITION

      private static final ResourceLocation MINECRAFT_EDITION
    • realmsNotificationsInitialized

      private boolean realmsNotificationsInitialized
    • realmsNotificationsScreen

      private Screen realmsNotificationsScreen
    • copyrightWidth

      private int copyrightWidth
    • copyrightX

      private int copyrightX
    • panorama

      private final RenderSkybox panorama
    • fading

      private final boolean fading
    • fadeInStart

      private long fadeInStart
    • modUpdateNotification

      private NotificationModUpdateScreen modUpdateNotification
  • Constructor Details

    • MainMenuScreen

      public MainMenuScreen()
    • MainMenuScreen

      public MainMenuScreen(boolean p_i51107_1_)
  • Method Details

    • realmsNotificationsEnabled

      private boolean realmsNotificationsEnabled()
    • tick

      public void tick()
      Specified by:
      tick in interface IScreen
      Overrides:
      tick in class Screen
    • preloadResources

      public static CompletableFuture<Void> preloadResources(TextureManager p_213097_0_, Executor p_213097_1_)
    • 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_73969_1_, int p_73969_2_)
    • createDemoMenuOptions

      private void createDemoMenuOptions(int p_73972_1_, int p_73972_2_)
    • checkDemoWorldPresence

      private boolean checkDemoWorldPresence()
    • realmsButtonClicked

      private void realmsButtonClicked()
    • render

      public void render(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_)
      Specified by:
      render in interface IRenderable
      Overrides:
      render in class Screen
    • mouseClicked

      public boolean mouseClicked(double p_231044_1_, double p_231044_3_, int p_231044_5_)
    • removed

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

      private void confirmDemo(boolean p_213087_1_)