Class AccessibilityOnboardingScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement

public class AccessibilityOnboardingScreen extends Screen
  • Field Details

    • TITLE

      private static final Component TITLE
    • ONBOARDING_NARRATOR_MESSAGE

      private static final Component ONBOARDING_NARRATOR_MESSAGE
    • PADDING

      private static final int PADDING
      See Also:
    • TITLE_PADDING

      private static final int TITLE_PADDING
      See Also:
    • logoRenderer

      private final LogoRenderer logoRenderer
    • options

      private final Options options
    • narratorAvailable

      private final boolean narratorAvailable
    • hasNarrated

      private boolean hasNarrated
    • timer

      private float timer
    • onClose

      private final Runnable onClose
    • textWidget

      @Nullable private FocusableTextWidget textWidget
    • layout

      private final HeaderAndFooterLayout layout
  • Constructor Details

    • AccessibilityOnboardingScreen

      public AccessibilityOnboardingScreen(Options pOptions, Runnable pOnClose)
  • Method Details

    • init

      public void init()
      Overrides:
      init in class Screen
    • repositionElements

      protected void repositionElements()
      Overrides:
      repositionElements in class Screen
    • setInitialFocus

      protected void setInitialFocus()
      Overrides:
      setInitialFocus in class Screen
    • initTitleYPos

      private int initTitleYPos()
    • onClose

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

      private void closeAndSetScreen(Screen pScreen)
    • close

      private void close(boolean pMarkAsFinished, Runnable pOnClose)
    • render

      public void render(GuiGraphics p_282353_, int p_265135_, int p_265032_, float p_265387_)
      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
      Parameters:
      p_282353_ - the GuiGraphics object used for rendering.
      p_265135_ - the x-coordinate of the mouse cursor.
      p_265032_ - the y-coordinate of the mouse cursor.
      p_265387_ - the partial tick time.
    • renderPanorama

      protected void renderPanorama(GuiGraphics p_330740_, float p_331952_)
      Overrides:
      renderPanorama in class Screen
    • handleInitialNarrationDelay

      private void handleInitialNarrationDelay()