Class AdvancementsScreen

All Implemented Interfaces:
AdvancementManager.Listener, Drawable, Element, ParentElement, ClientAdvancementManager.Listener

@Environment(CLIENT) public class AdvancementsScreen extends Screen implements ClientAdvancementManager.Listener
Mappings:
Namespace Name
official eel
intermediary net/minecraft/class_457
named net/minecraft/client/gui/screen/advancement/AdvancementsScreen
  • Field Details

    • WINDOW_TEXTURE

      private static final Identifier WINDOW_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      official s Leel;s:Lyt;
      intermediary field_2717 Lnet/minecraft/class_457;field_2717:Lnet/minecraft/class_2960;
      named WINDOW_TEXTURE Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;WINDOW_TEXTURE:Lnet/minecraft/util/Identifier;
    • TABS_TEXTURE

      private static final Identifier TABS_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      official t Leel;t:Lyt;
      intermediary field_2716 Lnet/minecraft/class_457;field_2716:Lnet/minecraft/class_2960;
      named TABS_TEXTURE Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;TABS_TEXTURE:Lnet/minecraft/util/Identifier;
    • WINDOW_WIDTH

      public static final int WINDOW_WIDTH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Leel;a:I
      intermediary field_32298 Lnet/minecraft/class_457;field_32298:I
      named WINDOW_WIDTH Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;WINDOW_WIDTH:I
    • WINDOW_HEIGHT

      public static final int WINDOW_HEIGHT
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Leel;b:I
      intermediary field_32299 Lnet/minecraft/class_457;field_32299:I
      named WINDOW_HEIGHT Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;WINDOW_HEIGHT:I
    • PAGE_OFFSET_X

      private static final int PAGE_OFFSET_X
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official u Leel;u:I
      intermediary field_32306 Lnet/minecraft/class_457;field_32306:I
      named PAGE_OFFSET_X Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;PAGE_OFFSET_X:I
    • PAGE_OFFSET_Y

      private static final int PAGE_OFFSET_Y
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official v Leel;v:I
      intermediary field_32307 Lnet/minecraft/class_457;field_32307:I
      named PAGE_OFFSET_Y Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;PAGE_OFFSET_Y:I
    • PAGE_WIDTH

      public static final int PAGE_WIDTH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Leel;c:I
      intermediary field_32300 Lnet/minecraft/class_457;field_32300:I
      named PAGE_WIDTH Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;PAGE_WIDTH:I
    • PAGE_HEIGHT

      public static final int PAGE_HEIGHT
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official n Leel;n:I
      intermediary field_32301 Lnet/minecraft/class_457;field_32301:I
      named PAGE_HEIGHT Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;PAGE_HEIGHT:I
    • TITLE_OFFSET_X

      private static final int TITLE_OFFSET_X
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official w Leel;w:I
      intermediary field_32308 Lnet/minecraft/class_457;field_32308:I
      named TITLE_OFFSET_X Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;TITLE_OFFSET_X:I
    • TITLE_OFFSET_Y

      private static final int TITLE_OFFSET_Y
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official x Leel;x:I
      intermediary field_32309 Lnet/minecraft/class_457;field_32309:I
      named TITLE_OFFSET_Y Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;TITLE_OFFSET_Y:I
    • field_32302

      public static final int field_32302
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official o Leel;o:I
      intermediary field_32302 Lnet/minecraft/class_457;field_32302:I
      named field_32302 Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;field_32302:I
    • field_32303

      public static final int field_32303
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official p Leel;p:I
      intermediary field_32303 Lnet/minecraft/class_457;field_32303:I
      named field_32303 Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;field_32303:I
    • field_32304

      public static final int field_32304
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official q Leel;q:I
      intermediary field_32304 Lnet/minecraft/class_457;field_32304:I
      named field_32304 Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;field_32304:I
    • field_32305

      public static final int field_32305
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official r Leel;r:I
      intermediary field_32305 Lnet/minecraft/class_457;field_32305:I
      named field_32305 Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;field_32305:I
    • SAD_LABEL_TEXT

      private static final Text SAD_LABEL_TEXT
      Mappings:
      Namespace Name Mixin selector
      official y Leel;y:Lqk;
      intermediary field_26553 Lnet/minecraft/class_457;field_26553:Lnet/minecraft/class_2561;
      named SAD_LABEL_TEXT Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;SAD_LABEL_TEXT:Lnet/minecraft/text/Text;
    • EMPTY_TEXT

      private static final Text EMPTY_TEXT
      Mappings:
      Namespace Name Mixin selector
      official z Leel;z:Lqk;
      intermediary field_26554 Lnet/minecraft/class_457;field_26554:Lnet/minecraft/class_2561;
      named EMPTY_TEXT Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;EMPTY_TEXT:Lnet/minecraft/text/Text;
    • ADVANCEMENTS_TEXT

      private static final Text ADVANCEMENTS_TEXT
      Mappings:
      Namespace Name Mixin selector
      official A Leel;A:Lqk;
      intermediary field_26555 Lnet/minecraft/class_457;field_26555:Lnet/minecraft/class_2561;
      named ADVANCEMENTS_TEXT Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;ADVANCEMENTS_TEXT:Lnet/minecraft/text/Text;
    • advancementHandler

      private final ClientAdvancementManager advancementHandler
      Mappings:
      Namespace Name Mixin selector
      official B Leel;B:Lemp;
      intermediary field_2721 Lnet/minecraft/class_457;field_2721:Lnet/minecraft/class_632;
      named advancementHandler Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;advancementHandler:Lnet/minecraft/client/network/ClientAdvancementManager;
    • tabs

      private final Map<Advancement,AdvancementTab> tabs
      Mappings:
      Namespace Name Mixin selector
      official C Leel;C:Ljava/util/Map;
      intermediary field_2719 Lnet/minecraft/class_457;field_2719:Ljava/util/Map;
      named tabs Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;tabs:Ljava/util/Map;
    • selectedTab

      @Nullable private @Nullable AdvancementTab selectedTab
      Mappings:
      Namespace Name Mixin selector
      official D Leel;D:Leeh;
      intermediary field_2720 Lnet/minecraft/class_457;field_2720:Lnet/minecraft/class_454;
      named selectedTab Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;selectedTab:Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;
    • movingTab

      private boolean movingTab
      Mappings:
      Namespace Name Mixin selector
      official E Leel;E:Z
      intermediary field_2718 Lnet/minecraft/class_457;field_2718:Z
      named movingTab Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;movingTab:Z
  • Constructor Details

    • AdvancementsScreen

      public AdvancementsScreen(ClientAdvancementManager advancementHandler)
      Mappings:
      Namespace Name Mixin selector
      official <init> Leel;<init>(Lemp;)V
      intermediary <init> Lnet/minecraft/class_457;<init>(Lnet/minecraft/class_632;)V
      named <init> Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;<init>(Lnet/minecraft/client/network/ClientAdvancementManager;)V
  • Method Details

    • init

      protected void init()
      Called when a screen should be initialized.

      This method is called when this screen is opened or resized.

      Overrides:
      init in class Screen
      Mappings:
      Namespace Name Mixin selector
      official b Ledw;b()V
      intermediary method_25426 Lnet/minecraft/class_437;method_25426()V
      named init Lnet/minecraft/client/gui/screen/Screen;init()V
    • removed

      public void removed()
      Overrides:
      removed in class Screen
      Mappings:
      Namespace Name Mixin selector
      official e Ledw;e()V
      intermediary method_25432 Lnet/minecraft/class_437;method_25432()V
      named removed Lnet/minecraft/client/gui/screen/Screen;removed()V
    • mouseClicked

      public boolean mouseClicked(double mouseX, double mouseY, int button)
      Callback for when a mouse button down event has been captured. The button number is identified by the constants in GLFW class.
      Specified by:
      mouseClicked in interface Element
      Specified by:
      mouseClicked in interface ParentElement
      Parameters:
      mouseX - the X coordinate of the mouse
      mouseY - the Y coordinate of the mouse
      button - the mouse button number
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lebd;a(DDI)Z
      intermediary method_25402 Lnet/minecraft/class_364;method_25402(DDI)Z
      named mouseClicked Lnet/minecraft/client/gui/Element;mouseClicked(DDI)Z
    • keyPressed

      public boolean keyPressed(int keyCode, int scanCode, int modifiers)
      Callback for when a key down event has been captured. The key code is identified by the constants in GLFW class.
      Specified by:
      keyPressed in interface Element
      Specified by:
      keyPressed in interface ParentElement
      Overrides:
      keyPressed in class Screen
      Parameters:
      keyCode - the named key code of the event as described in the GLFW class
      scanCode - the unique/platform-specific scan code of the keyboard input
      modifiers - a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lebd;a(III)Z
      intermediary method_25404 Lnet/minecraft/class_364;method_25404(III)Z
      named keyPressed Lnet/minecraft/client/gui/Element;keyPressed(III)Z
    • render

      public void render(MatrixStack matrices, int mouseX, int mouseY, float delta)
      Specified by:
      render in interface Drawable
      Overrides:
      render in class Screen
      Mappings:
      Namespace Name Mixin selector
      official a Leba;a(Ldtm;IIF)V
      intermediary method_25394 Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)V
      named render Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
    • mouseDragged

      public boolean mouseDragged(double mouseX, double mouseY, int button, double deltaX, double deltaY)
      Callback for when a mouse button drag event has been captured. The button number is identified by the constants in GLFW class.
      Specified by:
      mouseDragged in interface Element
      Specified by:
      mouseDragged in interface ParentElement
      Parameters:
      mouseX - the current X coordinate of the mouse
      mouseY - the current Y coordinate of the mouse
      button - the mouse button number
      deltaX - the difference of the current X with the previous X coordinate
      deltaY - the difference of the current Y with the previous Y coordinate
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lebd;a(DDIDD)Z
      intermediary method_25403 Lnet/minecraft/class_364;method_25403(DDIDD)Z
      named mouseDragged Lnet/minecraft/client/gui/Element;mouseDragged(DDIDD)Z
    • drawAdvancementTree

      private void drawAdvancementTree(MatrixStack matrices, int mouseX, int mouseY, int x, int y)
      Mappings:
      Namespace Name Mixin selector
      official c Leel;c(Ldtm;IIII)V
      intermediary method_2337 Lnet/minecraft/class_457;method_2337(Lnet/minecraft/class_4587;IIII)V
      named drawAdvancementTree Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;drawAdvancementTree(Lnet/minecraft/client/util/math/MatrixStack;IIII)V
    • drawWindow

      public void drawWindow(MatrixStack matrices, int x, int y)
      Mappings:
      Namespace Name Mixin selector
      official a Leel;a(Ldtm;II)V
      intermediary method_2334 Lnet/minecraft/class_457;method_2334(Lnet/minecraft/class_4587;II)V
      named drawWindow Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;drawWindow(Lnet/minecraft/client/util/math/MatrixStack;II)V
    • drawWidgetTooltip

      private void drawWidgetTooltip(MatrixStack matrices, int mouseX, int mouseY, int x, int y)
      Mappings:
      Namespace Name Mixin selector
      official d Leel;d(Ldtm;IIII)V
      intermediary method_2338 Lnet/minecraft/class_457;method_2338(Lnet/minecraft/class_4587;IIII)V
      named drawWidgetTooltip Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;drawWidgetTooltip(Lnet/minecraft/client/util/math/MatrixStack;IIII)V
    • onRootAdded

      public void onRootAdded(Advancement root)
      Specified by:
      onRootAdded in interface AdvancementManager.Listener
      Mappings:
      Namespace Name Mixin selector
      official a Lag$a;a(Laf;)V
      intermediary method_723 Lnet/minecraft/class_163$class_164;method_723(Lnet/minecraft/class_161;)V
      named onRootAdded Lnet/minecraft/advancement/AdvancementManager$Listener;onRootAdded(Lnet/minecraft/advancement/Advancement;)V
    • onRootRemoved

      public void onRootRemoved(Advancement root)
      Specified by:
      onRootRemoved in interface AdvancementManager.Listener
      Mappings:
      Namespace Name Mixin selector
      official b Lag$a;b(Laf;)V
      intermediary method_720 Lnet/minecraft/class_163$class_164;method_720(Lnet/minecraft/class_161;)V
      named onRootRemoved Lnet/minecraft/advancement/AdvancementManager$Listener;onRootRemoved(Lnet/minecraft/advancement/Advancement;)V
    • onDependentAdded

      public void onDependentAdded(Advancement dependent)
      Specified by:
      onDependentAdded in interface AdvancementManager.Listener
      Mappings:
      Namespace Name Mixin selector
      official c Lag$a;c(Laf;)V
      intermediary method_721 Lnet/minecraft/class_163$class_164;method_721(Lnet/minecraft/class_161;)V
      named onDependentAdded Lnet/minecraft/advancement/AdvancementManager$Listener;onDependentAdded(Lnet/minecraft/advancement/Advancement;)V
    • onDependentRemoved

      public void onDependentRemoved(Advancement dependent)
      Specified by:
      onDependentRemoved in interface AdvancementManager.Listener
      Mappings:
      Namespace Name Mixin selector
      official d Lag$a;d(Laf;)V
      intermediary method_719 Lnet/minecraft/class_163$class_164;method_719(Lnet/minecraft/class_161;)V
      named onDependentRemoved Lnet/minecraft/advancement/AdvancementManager$Listener;onDependentRemoved(Lnet/minecraft/advancement/Advancement;)V
    • setProgress

      public void setProgress(Advancement advancement, AdvancementProgress progress)
      Specified by:
      setProgress in interface ClientAdvancementManager.Listener
      Mappings:
      Namespace Name Mixin selector
      official a Lemp$a;a(Laf;Lah;)V
      intermediary method_2865 Lnet/minecraft/class_632$class_633;method_2865(Lnet/minecraft/class_161;Lnet/minecraft/class_167;)V
      named setProgress Lnet/minecraft/client/network/ClientAdvancementManager$Listener;setProgress(Lnet/minecraft/advancement/Advancement;Lnet/minecraft/advancement/AdvancementProgress;)V
    • selectTab

      public void selectTab(@Nullable @Nullable Advancement advancement)
      Specified by:
      selectTab in interface ClientAdvancementManager.Listener
      Mappings:
      Namespace Name Mixin selector
      official e Lemp$a;e(Laf;)V
      intermediary method_2866 Lnet/minecraft/class_632$class_633;method_2866(Lnet/minecraft/class_161;)V
      named selectTab Lnet/minecraft/client/network/ClientAdvancementManager$Listener;selectTab(Lnet/minecraft/advancement/Advancement;)V
    • onClear

      public void onClear()
      Specified by:
      onClear in interface AdvancementManager.Listener
      Mappings:
      Namespace Name Mixin selector
      official a Lag$a;a()V
      intermediary method_722 Lnet/minecraft/class_163$class_164;method_722()V
      named onClear Lnet/minecraft/advancement/AdvancementManager$Listener;onClear()V
    • getAdvancementWidget

      @Nullable public @Nullable AdvancementWidget getAdvancementWidget(Advancement advancement)
      Mappings:
      Namespace Name Mixin selector
      official f Leel;f(Laf;)Leej;
      intermediary method_2335 Lnet/minecraft/class_457;method_2335(Lnet/minecraft/class_161;)Lnet/minecraft/class_456;
      named getAdvancementWidget Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;getAdvancementWidget(Lnet/minecraft/advancement/Advancement;)Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;
    • getTab

      @Nullable private @Nullable AdvancementTab getTab(Advancement advancement)
      Mappings:
      Namespace Name Mixin selector
      official g Leel;g(Laf;)Leeh;
      intermediary method_2336 Lnet/minecraft/class_457;method_2336(Lnet/minecraft/class_161;)Lnet/minecraft/class_454;
      named getTab Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;getTab(Lnet/minecraft/advancement/Advancement;)Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;