Class ProgressScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement, ProgressListener

public class ProgressScreen extends Screen implements ProgressListener
  • Field Details

    • stage

      @Nullable private Component stage
    • progress

      private int progress
    • stop

      private boolean stop
    • clearScreenAfterStop

      private final boolean clearScreenAfterStop
  • Constructor Details

    • ProgressScreen

      public ProgressScreen(boolean pClearScreenAfterStop)
  • Method Details

    • shouldCloseOnEsc

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

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

      public void progressStartNoAbort(Component pComponent)
      Specified by:
      progressStartNoAbort in interface ProgressListener
    • progressStart

      public void progressStart(Component pComponent)
      Specified by:
      progressStart in interface ProgressListener
    • progressStage

      public void progressStage(Component pComponent)
      Specified by:
      progressStage in interface ProgressListener
    • progressStagePercentage

      public void progressStagePercentage(int pProgress)
      Updates the progress bar on the loading screen to the specified amount.
      Specified by:
      progressStagePercentage in interface ProgressListener
    • stop

      public void stop()
      Specified by:
      stop in interface ProgressListener
    • 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.