Class AuthScreen

java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
me.axieum.mcmod.authme.api.gui.screen.AuthScreen
All Implemented Interfaces:
net.minecraft.client.gui.components.events.ContainerEventHandler, net.minecraft.client.gui.components.events.GuiEventListener, net.minecraft.client.gui.components.Renderable, net.minecraft.client.gui.components.TabOrderedElement
Direct Known Subclasses:
MicrosoftAuthScreen, OfflineAuthScreen

public abstract class AuthScreen extends net.minecraft.client.gui.screens.Screen
A screen for handling user authentication.
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen

    net.minecraft.client.gui.screens.Screen.NarratableSearchResult
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected boolean
    True if the screen should be closed on success stat (via render thread).
    protected final net.minecraft.client.gui.screens.Screen
    The parent (or last) screen that opened this screen.
    protected boolean
    True if the login task completed successfully.
    protected final net.minecraft.client.gui.screens.Screen
    The screen to be returned to after a successful login.

    Fields inherited from class net.minecraft.client.gui.screens.Screen

    FADE_IN_TIME, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, screenExecutor, title, width
  • Constructor Summary

    Constructors
    Constructor
    Description
    AuthScreen(net.minecraft.network.chat.Component title, net.minecraft.client.gui.screens.Screen parentScreen, net.minecraft.client.gui.screens.Screen successScreen)
    Constructs a new authentication screen.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected static void
    centerPosition(net.minecraft.client.gui.layouts.LayoutElement element, net.minecraft.client.gui.screens.Screen screen, int xOffset, int yOffset)
    Centers the position of a LayoutElement.
    protected void
     
    void
     
    void
     

    Methods inherited from class net.minecraft.client.gui.screens.Screen

    added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, canInterruptWithAnotherScreen, changeFocus, children, clearFocus, clearWidgets, clickCommandAction, clickUrlAction, defaultHandleClickEvent, defaultHandleGameClickEvent, fadeWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleClickEvent, handleComponentClicked, handleDelayedNarration, init, insertText, isAllowedInPortal, isInGameUi, isMouseOver, isPauseScreen, isValidCharacterForName, keyPressed, onFilesDrop, panoramaShouldSpin, rebuildWidgets, removed, removeWidget, render, renderBackground, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltipAndSubtitles, repositionElements, resize, setInitialFocus, setInitialFocus, shouldCloseOnEsc, shouldNarrateNavigation, showsActiveEffects, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatus

    Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler

    getFocused, isDragging, setDragging, setFocused

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler

    charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocused

    Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener

    getBorderForArrowNavigation, mouseMoved, shouldTakeFocusAfterInteraction

    Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement

    getTabOrderGroup
  • Field Details

    • parentScreen

      protected final net.minecraft.client.gui.screens.Screen parentScreen
      The parent (or last) screen that opened this screen.
    • successScreen

      protected final net.minecraft.client.gui.screens.Screen successScreen
      The screen to be returned to after a successful login.
    • success

      protected boolean success
      True if the login task completed successfully.
    • closeOnSuccess

      protected boolean closeOnSuccess
      True if the screen should be closed on success stat (via render thread).
  • Constructor Details

    • AuthScreen

      public AuthScreen(net.minecraft.network.chat.Component title, net.minecraft.client.gui.screens.Screen parentScreen, net.minecraft.client.gui.screens.Screen successScreen)
      Constructs a new authentication screen.
      Parameters:
      title - screen title
      parentScreen - parent (or last) screen that opened this screen
      successScreen - screen to be returned to after a successful login
  • Method Details

    • init

      protected void init()
      Overrides:
      init in class net.minecraft.client.gui.screens.Screen
    • tick

      public void tick()
      Overrides:
      tick in class net.minecraft.client.gui.screens.Screen
    • onClose

      public void onClose()
      Overrides:
      onClose in class net.minecraft.client.gui.screens.Screen
    • centerPosition

      protected static void centerPosition(net.minecraft.client.gui.layouts.LayoutElement element, net.minecraft.client.gui.screens.Screen screen, int xOffset, int yOffset)
      Centers the position of a LayoutElement.
      Parameters:
      element - the LayoutElement to center.
      screen - the Screen to center the element in.
      xOffset - the horizontal offset to be applied.
      yOffset - the vertical offset to be applied.