Class AdvancementsScreen
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.advancement.AdvancementsScreen
- All Implemented Interfaces:
AdvancementManager.Listener,Drawable,Element,ParentElement,TickableElement,ClientAdvancementManager.Listener
@Environment(CLIENT) public class AdvancementsScreen extends Screen implements ClientAdvancementManager.Listener
- Mappings:
Namespace Name official dztintermediary net/minecraft/class_457named net/minecraft/client/gui/screen/advancement/AdvancementsScreen
-
Field Summary
Fields Modifier and Type Field Description private ClientAdvancementManageradvancementHandlerprivate static TextADVANCEMENTS_TEXTprivate static TextEMPTY_TEXTstatic intfield_32298static intfield_32299static intfield_32300static intfield_32301static intfield_32302static intfield_32303static intfield_32304static intfield_32305private static intfield_32306private static intfield_32307private static intfield_32308private static intfield_32309private booleanmovingTabprivate static TextSAD_LABEL_TEXTprivate AdvancementTabselectedTabprivate Map<Advancement,AdvancementTab>tabsprivate static IdentifierTABS_TEXTUREprivate static IdentifierWINDOW_TEXTUREFields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, widthFields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE -
Constructor Summary
Constructors Constructor Description AdvancementsScreen(ClientAdvancementManager advancementHandler) -
Method Summary
Modifier and Type Method Description private voiddrawAdvancementTree(MatrixStack matrices, int mouseY, int int2, int int3, int int4)voiddrawWidgets(MatrixStack matrices, int int2, int int3)private voiddrawWidgetTooltip(MatrixStack matrices, int int2, int int3, int int4, int int5)@Nullable AdvancementWidgetgetAdvancementWidget(Advancement advancement)private @Nullable AdvancementTabgetTab(Advancement advancement)protected voidinit()Called when a screen should be initialized.booleankeyPressed(int keyCode, int scanCode, int modifiers)Callback for when a key down event has been captured.booleanmouseClicked(double mouseX, double mouseY, int button)Callback for when a mouse button down event has been captured.booleanmouseDragged(double mouseX, double mouseY, int button, double deltaX, double deltaY)Callback for when a mouse button drag event has been captured.voidonClear()voidonDependentAdded(Advancement dependent)voidonDependentRemoved(Advancement dependent)voidonRootAdded(Advancement root)voidonRootRemoved(Advancement root)voidremoved()voidrender(MatrixStack matrices, int mouseX, int mouseY, float delta)voidselectTab(@Nullable Advancement advancement)voidsetProgress(Advancement advancement, AdvancementProgress progress)Methods inherited from class net.minecraft.client.gui.screen.Screen
addButton, addChild, children, filesDragged, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, onClose, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, tick, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, method_35719, method_35720, setZOffsetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
mouseMovedMethods inherited from interface net.minecraft.client.gui.ParentElement
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseReleased, mouseScrolled, setInitialFocus
-
Field Details
-
WINDOW_TEXTURE
- Mappings:
Namespace Name Mixin selector official uLdzt;u:Lwp;intermediary field_2717Lnet/minecraft/class_457;field_2717:Lnet/minecraft/class_2960;named WINDOW_TEXTURELnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;WINDOW_TEXTURE:Lnet/minecraft/util/Identifier;
-
TABS_TEXTURE
- Mappings:
Namespace Name Mixin selector official vLdzt;v:Lwp;intermediary field_2716Lnet/minecraft/class_457;field_2716:Lnet/minecraft/class_2960;named TABS_TEXTURELnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;TABS_TEXTURE:Lnet/minecraft/util/Identifier;
-
field_32298
public static final int field_32298- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official aLdzt;a:Iintermediary field_32298Lnet/minecraft/class_457;field_32298:Inamed field_32298Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;field_32298:I
-
field_32299
public static final int field_32299- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official bLdzt;b:Iintermediary field_32299Lnet/minecraft/class_457;field_32299:Inamed field_32299Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;field_32299:I
-
field_32306
private static final int field_32306- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official wLdzt;w:Iintermediary field_32306Lnet/minecraft/class_457;field_32306:Inamed field_32306Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;field_32306:I
-
field_32307
private static final int field_32307- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official xLdzt;x:Iintermediary field_32307Lnet/minecraft/class_457;field_32307:Inamed field_32307Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;field_32307:I
-
field_32300
public static final int field_32300- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official cLdzt;c:Iintermediary field_32300Lnet/minecraft/class_457;field_32300:Inamed field_32300Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;field_32300:I
-
field_32301
public static final int field_32301- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official pLdzt;p:Iintermediary field_32301Lnet/minecraft/class_457;field_32301:Inamed field_32301Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;field_32301:I
-
field_32308
private static final int field_32308- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official yLdzt;y:Iintermediary field_32308Lnet/minecraft/class_457;field_32308:Inamed field_32308Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;field_32308:I
-
field_32309
private static final int field_32309- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official zLdzt;z:Iintermediary field_32309Lnet/minecraft/class_457;field_32309:Inamed field_32309Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;field_32309:I
-
field_32302
public static final int field_32302- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official qLdzt;q:Iintermediary field_32302Lnet/minecraft/class_457;field_32302:Inamed field_32302Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;field_32302:I
-
field_32303
public static final int field_32303- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official rLdzt;r:Iintermediary field_32303Lnet/minecraft/class_457;field_32303:Inamed field_32303Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;field_32303:I
-
field_32304
public static final int field_32304- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official sLdzt;s:Iintermediary field_32304Lnet/minecraft/class_457;field_32304:Inamed field_32304Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;field_32304:I
-
field_32305
public static final int field_32305- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official tLdzt;t:Iintermediary field_32305Lnet/minecraft/class_457;field_32305:Inamed field_32305Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;field_32305:I
-
SAD_LABEL_TEXT
- Mappings:
Namespace Name Mixin selector official ALdzt;A:Lon;intermediary field_26553Lnet/minecraft/class_457;field_26553:Lnet/minecraft/class_2561;named SAD_LABEL_TEXTLnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;SAD_LABEL_TEXT:Lnet/minecraft/text/Text;
-
EMPTY_TEXT
- Mappings:
Namespace Name Mixin selector official BLdzt;B:Lon;intermediary field_26554Lnet/minecraft/class_457;field_26554:Lnet/minecraft/class_2561;named EMPTY_TEXTLnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;EMPTY_TEXT:Lnet/minecraft/text/Text;
-
ADVANCEMENTS_TEXT
- Mappings:
Namespace Name Mixin selector official CLdzt;C:Lon;intermediary field_26555Lnet/minecraft/class_457;field_26555:Lnet/minecraft/class_2561;named ADVANCEMENTS_TEXTLnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;ADVANCEMENTS_TEXT:Lnet/minecraft/text/Text;
-
advancementHandler
- Mappings:
Namespace Name Mixin selector official DLdzt;D:Lehs;intermediary field_2721Lnet/minecraft/class_457;field_2721:Lnet/minecraft/class_632;named advancementHandlerLnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;advancementHandler:Lnet/minecraft/client/network/ClientAdvancementManager;
-
tabs
- Mappings:
Namespace Name Mixin selector official ELdzt;E:Ljava/util/Map;intermediary field_2719Lnet/minecraft/class_457;field_2719:Ljava/util/Map;named tabsLnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;tabs:Ljava/util/Map;
-
selectedTab
- Mappings:
Namespace Name Mixin selector official FLdzt;F:Ldzp;intermediary field_2720Lnet/minecraft/class_457;field_2720:Lnet/minecraft/class_454;named selectedTabLnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;selectedTab:Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;
-
movingTab
private boolean movingTab- Mappings:
Namespace Name Mixin selector official GLdzt;G:Zintermediary field_2718Lnet/minecraft/class_457;field_2718:Znamed movingTabLnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;movingTab:Z
-
-
Constructor Details
-
AdvancementsScreen
- Mappings:
Namespace Name Mixin selector official <init>Ldzt;<init>(Lehs;)Vintermediary <init>Lnet/minecraft/class_457;<init>(Lnet/minecraft/class_632;)Vnamed <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.
-
removed
public void removed() -
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 inGLFWclass.- Specified by:
mouseClickedin interfaceElement- Specified by:
mouseClickedin interfaceParentElement- Parameters:
mouseX- the X coordinate of the mousemouseY- the Y coordinate of the mousebutton- the mouse button number- Returns:
trueto indicate that the event handling is successful/valid- See Also:
Mouse.onMouseButton(long, int, int, int),GLFW.GLFW_MOUSE_BUTTON_1- Mappings:
Namespace Name Mixin selector official aLdwt;a(DDI)Zintermediary method_25402Lnet/minecraft/class_364;method_25402(DDI)Znamed mouseClickedLnet/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 inGLFWclass.- Specified by:
keyPressedin interfaceElement- Specified by:
keyPressedin interfaceParentElement- Overrides:
keyPressedin classScreen- Parameters:
keyCode- the named key code of the event as described in theGLFWclassscanCode- the unique/platform-specific scan code of the keyboard inputmodifiers- a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)- Returns:
trueto indicate that the event handling is successful/valid- See Also:
Keyboard.onKey(long, int, int, int, int),GLFW.GLFW_KEY_Q,GLFWKeyCallbackI.invoke(long, int, int, int, int)- Mappings:
Namespace Name Mixin selector official aLdwt;a(III)Zintermediary method_25404Lnet/minecraft/class_364;method_25404(III)Znamed keyPressedLnet/minecraft/client/gui/Element;keyPressed(III)Z
-
render
- Specified by:
renderin interfaceDrawable- Overrides:
renderin classScreen- Mappings:
Namespace Name Mixin selector official aLdwq;a(Ldpg;IIF)Vintermediary method_25394Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)Vnamed renderLnet/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 inGLFWclass.- Specified by:
mouseDraggedin interfaceElement- Specified by:
mouseDraggedin interfaceParentElement- Parameters:
mouseX- the current X coordinate of the mousemouseY- the current Y coordinate of the mousebutton- the mouse button numberdeltaX- the difference of the current X with the previous X coordinatedeltaY- the difference of the current Y with the previous Y coordinate- Returns:
trueto indicate that the event handling is successful/valid- See Also:
Mouse.onCursorPos(long, double, double),GLFW.GLFW_MOUSE_BUTTON_1- Mappings:
Namespace Name Mixin selector official aLdwt;a(DDIDD)Zintermediary method_25403Lnet/minecraft/class_364;method_25403(DDIDD)Znamed mouseDraggedLnet/minecraft/client/gui/Element;mouseDragged(DDIDD)Z
-
drawAdvancementTree
- Mappings:
Namespace Name Mixin selector official cLdzt;c(Ldpg;IIII)Vintermediary method_2337Lnet/minecraft/class_457;method_2337(Lnet/minecraft/class_4587;IIII)Vnamed drawAdvancementTreeLnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;drawAdvancementTree(Lnet/minecraft/client/util/math/MatrixStack;IIII)V
-
drawWidgets
- Mappings:
Namespace Name Mixin selector official aLdzt;a(Ldpg;II)Vintermediary method_2334Lnet/minecraft/class_457;method_2334(Lnet/minecraft/class_4587;II)Vnamed drawWidgetsLnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;drawWidgets(Lnet/minecraft/client/util/math/MatrixStack;II)V
-
drawWidgetTooltip
- Mappings:
Namespace Name Mixin selector official dLdzt;d(Ldpg;IIII)Vintermediary method_2338Lnet/minecraft/class_457;method_2338(Lnet/minecraft/class_4587;IIII)Vnamed drawWidgetTooltipLnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;drawWidgetTooltip(Lnet/minecraft/client/util/math/MatrixStack;IIII)V
-
onRootAdded
- Specified by:
onRootAddedin interfaceAdvancementManager.Listener- Mappings:
Namespace Name Mixin selector official aLae$a;a(Lad;)Vintermediary method_723Lnet/minecraft/class_163$class_164;method_723(Lnet/minecraft/class_161;)Vnamed onRootAddedLnet/minecraft/advancement/AdvancementManager$Listener;onRootAdded(Lnet/minecraft/advancement/Advancement;)V
-
onRootRemoved
- Specified by:
onRootRemovedin interfaceAdvancementManager.Listener- Mappings:
Namespace Name Mixin selector official bLae$a;b(Lad;)Vintermediary method_720Lnet/minecraft/class_163$class_164;method_720(Lnet/minecraft/class_161;)Vnamed onRootRemovedLnet/minecraft/advancement/AdvancementManager$Listener;onRootRemoved(Lnet/minecraft/advancement/Advancement;)V
-
onDependentAdded
- Specified by:
onDependentAddedin interfaceAdvancementManager.Listener- Mappings:
Namespace Name Mixin selector official cLae$a;c(Lad;)Vintermediary method_721Lnet/minecraft/class_163$class_164;method_721(Lnet/minecraft/class_161;)Vnamed onDependentAddedLnet/minecraft/advancement/AdvancementManager$Listener;onDependentAdded(Lnet/minecraft/advancement/Advancement;)V
-
onDependentRemoved
- Specified by:
onDependentRemovedin interfaceAdvancementManager.Listener- Mappings:
Namespace Name Mixin selector official dLae$a;d(Lad;)Vintermediary method_719Lnet/minecraft/class_163$class_164;method_719(Lnet/minecraft/class_161;)Vnamed onDependentRemovedLnet/minecraft/advancement/AdvancementManager$Listener;onDependentRemoved(Lnet/minecraft/advancement/Advancement;)V
-
setProgress
- Specified by:
setProgressin interfaceClientAdvancementManager.Listener- Mappings:
Namespace Name Mixin selector official aLehs$a;a(Lad;Laf;)Vintermediary method_2865Lnet/minecraft/class_632$class_633;method_2865(Lnet/minecraft/class_161;Lnet/minecraft/class_167;)Vnamed setProgressLnet/minecraft/client/network/ClientAdvancementManager$Listener;setProgress(Lnet/minecraft/advancement/Advancement;Lnet/minecraft/advancement/AdvancementProgress;)V
-
selectTab
- Specified by:
selectTabin interfaceClientAdvancementManager.Listener- Mappings:
Namespace Name Mixin selector official eLehs$a;e(Lad;)Vintermediary method_2866Lnet/minecraft/class_632$class_633;method_2866(Lnet/minecraft/class_161;)Vnamed selectTabLnet/minecraft/client/network/ClientAdvancementManager$Listener;selectTab(Lnet/minecraft/advancement/Advancement;)V
-
onClear
public void onClear()- Specified by:
onClearin interfaceAdvancementManager.Listener- Mappings:
Namespace Name Mixin selector official aLae$a;a()Vintermediary method_722Lnet/minecraft/class_163$class_164;method_722()Vnamed onClearLnet/minecraft/advancement/AdvancementManager$Listener;onClear()V
-
getAdvancementWidget
- Mappings:
Namespace Name Mixin selector official fLdzt;f(Lad;)Ldzr;intermediary method_2335Lnet/minecraft/class_457;method_2335(Lnet/minecraft/class_161;)Lnet/minecraft/class_456;named getAdvancementWidgetLnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;getAdvancementWidget(Lnet/minecraft/advancement/Advancement;)Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;
-
getTab
- Mappings:
Namespace Name Mixin selector official gLdzt;g(Lad;)Ldzp;intermediary method_2336Lnet/minecraft/class_457;method_2336(Lnet/minecraft/class_161;)Lnet/minecraft/class_454;named getTabLnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;getTab(Lnet/minecraft/advancement/Advancement;)Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;
-