Class LevelLoadingScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement

public class LevelLoadingScreen extends Screen
  • Field Details

    • NARRATION_DELAY_MS

      private static final long NARRATION_DELAY_MS
      See Also:
    • progressListener

      private final StoringChunkProgressListener progressListener
    • lastNarration

      private long lastNarration
    • done

      private boolean done
    • COLORS

      private static final it.unimi.dsi.fastutil.objects.Object2IntMap<ChunkStatus> COLORS
  • Constructor Details

  • Method Details

    • shouldCloseOnEsc

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

      protected boolean shouldNarrateNavigation()
      Overrides:
      shouldNarrateNavigation in class Screen
    • removed

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

      protected void updateNarratedWidget(NarrationElementOutput pNarrationElementOutput)
      Overrides:
      updateNarratedWidget in class Screen
    • getFormattedProgress

      private Component getFormattedProgress()
    • render

      public void render(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick)
      Renders the graphical user interface (GUI) element.
      Specified by:
      render in interface Renderable
      Overrides:
      render in class Screen
      Parameters:
      pGuiGraphics - the GuiGraphics object used for rendering.
      pMouseX - the x-coordinate of the mouse cursor.
      pMouseY - the y-coordinate of the mouse cursor.
      pPartialTick - the partial tick time.
    • renderChunks

      public static void renderChunks(GuiGraphics pGuiGraphics, StoringChunkProgressListener pProgressListener, int pX, int pY, int p_96154_, int p_96155_)