Class ReceivingLevelScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement
Direct Known Subclasses:
DimensionTransitionScreenTests.CustomLevelScreen

public class ReceivingLevelScreen extends Screen
  • Field Details

    • DOWNLOADING_TERRAIN_TEXT

      private static final Component DOWNLOADING_TERRAIN_TEXT
    • CHUNK_LOADING_START_WAIT_LIMIT_MS

      private static final long CHUNK_LOADING_START_WAIT_LIMIT_MS
      See Also:
    • createdAt

      private final long createdAt
    • levelReceived

      private final BooleanSupplier levelReceived
    • reason

      private final ReceivingLevelScreen.Reason reason
    • cachedNetherPortalSprite

      @Nullable private TextureAtlasSprite cachedNetherPortalSprite
  • Constructor Details

  • Method Details

    • shouldCloseOnEsc

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

      protected boolean shouldNarrateNavigation()
      Overrides:
      shouldNarrateNavigation in class Screen
    • 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.
    • renderBackground

      public void renderBackground(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick)
      Overrides:
      renderBackground in class Screen
    • getNetherPortalSprite

      private TextureAtlasSprite getNetherPortalSprite()
    • tick

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

      public void onClose()
      Overrides:
      onClose in class Screen
    • isPauseScreen

      public boolean isPauseScreen()
      Overrides:
      isPauseScreen in class Screen