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
,ClientAdvancementManager.Listener
@Environment(CLIENT)
public class AdvancementsScreen
extends Screen
implements ClientAdvancementManager.Listener
- Mappings:
Namespace Name official ebe
intermediary net/minecraft/class_457
named net/minecraft/client/gui/screen/advancement/AdvancementsScreen
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData
-
Field Summary
Modifier and TypeFieldDescriptionprivate ClientAdvancementManager
private static Text
private static Text
static int
static int
static int
static int
static int
static int
static int
static int
private static int
private static int
private static int
private static int
private boolean
private static Text
private AdvancementTab
private Map<Advancement,AdvancementTab>
private static Identifier
private static Identifier
Fields inherited from class net.minecraft.client.gui.screen.Screen
client, height, itemRenderer, passEvents, textRenderer, title, width
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
drawAdvancementTree(MatrixStack matrices, int mouseY, int int2, int int3, int int4)
void
drawWidgets(MatrixStack matrices, int int2, int int3)
private void
drawWidgetTooltip(MatrixStack matrices, int int2, int int3, int int4, int int5)
getAdvancementWidget(Advancement advancement)
private @Nullable AdvancementTab
getTab(Advancement advancement)
protected void
init()
Called when a screen should be initialized.boolean
keyPressed(int keyCode, int scanCode, int modifiers)
Callback for when a key down event has been captured.boolean
mouseClicked(double mouseX, double mouseY, int button)
Callback for when a mouse button down event has been captured.boolean
mouseDragged(double mouseX, double mouseY, int button, double deltaX, double deltaY)
Callback for when a mouse button drag event has been captured.void
onClear()
void
onDependentAdded(Advancement dependent)
void
onDependentRemoved(Advancement dependent)
void
onRootAdded(Advancement root)
void
onRootRemoved(Advancement root)
void
removed()
void
render(MatrixStack matrices, int mouseX, int mouseY, float delta)
void
selectTab(@Nullable Advancement advancement)
void
setProgress(Advancement advancement, AdvancementProgress progress)
Methods inherited from class net.minecraft.client.gui.screen.Screen
addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, children, clearChildren, filesDragged, findSelectedElementData, getNarratedTitle, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, narrateScreenIfNarrationEnabled, onClose, remove, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, tick, updateNarrator, wrapScreenError
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredText, drawCenteredText, drawCenteredTextWithShadow, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, drawWithOutline, drawWithShadow, fill, fillGradient, fillGradient, fillGradient, getZOffset, setZOffset
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.Element
mouseMoved
Methods 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 s
Lebe;s:Lww;
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
- Mappings:
Namespace Name Mixin selector official t
Lebe;t:Lww;
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;
-
field_32298
public static final int field_32298- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official a
Lebe;a:I
intermediary field_32298
Lnet/minecraft/class_457;field_32298:I
named field_32298
Lnet/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 b
Lebe;b:I
intermediary field_32299
Lnet/minecraft/class_457;field_32299:I
named field_32299
Lnet/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 u
Lebe;u:I
intermediary field_32306
Lnet/minecraft/class_457;field_32306:I
named field_32306
Lnet/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 v
Lebe;v:I
intermediary field_32307
Lnet/minecraft/class_457;field_32307:I
named field_32307
Lnet/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 c
Lebe;c:I
intermediary field_32300
Lnet/minecraft/class_457;field_32300:I
named field_32300
Lnet/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 n
Lebe;n:I
intermediary field_32301
Lnet/minecraft/class_457;field_32301:I
named field_32301
Lnet/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 w
Lebe;w:I
intermediary field_32308
Lnet/minecraft/class_457;field_32308:I
named field_32308
Lnet/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 x
Lebe;x:I
intermediary field_32309
Lnet/minecraft/class_457;field_32309:I
named field_32309
Lnet/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 o
Lebe;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:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official p
Lebe;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:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official q
Lebe;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:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official r
Lebe;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
- Mappings:
Namespace Name Mixin selector official y
Lebe;y:Los;
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
- Mappings:
Namespace Name Mixin selector official z
Lebe;z:Los;
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
- Mappings:
Namespace Name Mixin selector official A
Lebe;A:Los;
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
- Mappings:
Namespace Name Mixin selector official B
Lebe;B:Leje;
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
- Mappings:
Namespace Name Mixin selector official C
Lebe;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
- Mappings:
Namespace Name Mixin selector official D
Lebe;D:Leba;
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
Lebe;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
- Mappings:
Namespace Name Mixin selector official <init>
Lebe;<init>(Leje;)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.
-
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 inGLFW
class.- Specified by:
mouseClicked
in interfaceElement
- Specified by:
mouseClicked
in interfaceParentElement
- Parameters:
mouseX
- the X coordinate of the mousemouseY
- the Y coordinate of the mousebutton
- the mouse button number- Returns:
true
to 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 a
Ldxx;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 inGLFW
class.- Specified by:
keyPressed
in interfaceElement
- Specified by:
keyPressed
in interfaceParentElement
- Overrides:
keyPressed
in classScreen
- Parameters:
keyCode
- the named key code of the event as described in theGLFW
classscanCode
- 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:
true
to 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 a
Ldxx;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
- Specified by:
render
in interfaceDrawable
- Overrides:
render
in classScreen
- Mappings:
Namespace Name Mixin selector official a
Ldxu;a(Ldqk;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 inGLFW
class.- Specified by:
mouseDragged
in interfaceElement
- Specified by:
mouseDragged
in 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:
true
to 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 a
Ldxx;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
- Mappings:
Namespace Name Mixin selector official c
Lebe;c(Ldqk;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
-
drawWidgets
- Mappings:
Namespace Name Mixin selector official a
Lebe;a(Ldqk;II)V
intermediary method_2334
Lnet/minecraft/class_457;method_2334(Lnet/minecraft/class_4587;II)V
named drawWidgets
Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;drawWidgets(Lnet/minecraft/client/util/math/MatrixStack;II)V
-
drawWidgetTooltip
- Mappings:
Namespace Name Mixin selector official d
Lebe;d(Ldqk;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
- Specified by:
onRootAdded
in interfaceAdvancementManager.Listener
- Mappings:
Namespace Name Mixin selector official a
Laf$a;a(Lae;)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
- Specified by:
onRootRemoved
in interfaceAdvancementManager.Listener
- Mappings:
Namespace Name Mixin selector official b
Laf$a;b(Lae;)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
- Specified by:
onDependentAdded
in interfaceAdvancementManager.Listener
- Mappings:
Namespace Name Mixin selector official c
Laf$a;c(Lae;)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
- Specified by:
onDependentRemoved
in interfaceAdvancementManager.Listener
- Mappings:
Namespace Name Mixin selector official d
Laf$a;d(Lae;)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
- Specified by:
setProgress
in interfaceClientAdvancementManager.Listener
- Mappings:
Namespace Name Mixin selector official a
Leje$a;a(Lae;Lag;)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
- Specified by:
selectTab
in interfaceClientAdvancementManager.Listener
- Mappings:
Namespace Name Mixin selector official e
Leje$a;e(Lae;)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 interfaceAdvancementManager.Listener
- Mappings:
Namespace Name Mixin selector official a
Laf$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
- Mappings:
Namespace Name Mixin selector official f
Lebe;f(Lae;)Lebc;
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
- Mappings:
Namespace Name Mixin selector official g
Lebe;g(Lae;)Leba;
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;
-