Class AdvancementsScreen
java.lang.Object
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
,Navigable
,ParentElement
,ClientAdvancementManager.Listener
@Environment(CLIENT)
public class AdvancementsScreen
extends Screen
implements ClientAdvancementManager.Listener
- Mappings:
Namespace Name named net/minecraft/client/gui/screen/advancement/AdvancementsScreen
intermediary net/minecraft/class_457
official fnu
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ClientAdvancementManager
private static final Text
private static final Text
static final int
static final int
static final int
static final int
private static final double
private final ThreePartsLayoutWidget
private boolean
static final int
private static final int
private static final int
static final int
private static final Text
private @Nullable AdvancementTab
private final Map
<AdvancementEntry, AdvancementTab> private static final int
private static final int
static final int
private static final Identifier
static final int
Fields inherited from class net.minecraft.client.gui.screen.Screen
client, executor, FOOTER_SEPARATOR_TEXTURE, HEADER_SEPARATOR_TEXTURE, height, INWORLD_FOOTER_SEPARATOR_TEXTURE, INWORLD_HEADER_SEPARATOR_TEXTURE, MENU_BACKGROUND_TEXTURE, PANORAMA_RENDERER, ROTATING_PANORAMA_RENDERER, textRenderer, title, width
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
ConstructorDescriptionAdvancementsScreen
(ClientAdvancementManager advancementHandler) AdvancementsScreen
(ClientAdvancementManager advancementHandler, @Nullable Screen parent) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
private void
drawAdvancementTree
(DrawContext context, int mouseX, int mouseY, int x, int y) private void
drawWidgetTooltip
(DrawContext context, int mouseX, int mouseY, int x, int y) void
drawWindow
(DrawContext context, int x, int y) getAdvancementWidget
(PlacedAdvancement advancement) private @Nullable AdvancementTab
getTab
(PlacedAdvancement advancement) protected void
init()
Called when a screen should be initialized.protected void
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.boolean
mouseScrolled
(double mouseX, double mouseY, double horizontalAmount, double verticalAmount) Callback for when a mouse button scroll event has been captured.void
onClear()
void
onDependentAdded
(PlacedAdvancement dependent) void
onDependentRemoved
(PlacedAdvancement dependent) void
onRootAdded
(PlacedAdvancement root) void
void
removed()
void
render
(DrawContext context, int mouseX, int mouseY, float delta) void
selectTab
(@Nullable AdvancementEntry advancement) void
setProgress
(PlacedAdvancement advancement, AdvancementProgress progress) Methods inherited from class net.minecraft.client.gui.screen.Screen
addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyBlur, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, blur, children, clearAndInit, clearChildren, clearTooltip, filesDragged, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getPanoramaTickDelta, getTitle, getTooltipFromItem, getUsageNarrationText, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrateScreenIfNarrationEnabled, onDisplayed, remove, renderBackground, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldCloseOnEsc, shouldPause, switchFocus, tick, updateNarrator, wrapScreenError
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
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.Element
mouseMoved
Methods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrder
Methods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, getFocusedPath, getNavigationPath, hoveredElement, isFocused, keyReleased, mouseReleased, setFocused
-
Field Details
-
WINDOW_TEXTURE
- Mappings:
Namespace Name Mixin selector named WINDOW_TEXTURE
Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;WINDOW_TEXTURE:Lnet/minecraft/util/Identifier;
intermediary field_2717
Lnet/minecraft/class_457;field_2717:Lnet/minecraft/class_2960;
official w
Lfnu;w:Lalf;
-
WINDOW_WIDTH
public static final int WINDOW_WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector named WINDOW_WIDTH
Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;WINDOW_WIDTH:I
intermediary field_32298
Lnet/minecraft/class_457;field_32298:I
official a
Lfnu;a:I
-
WINDOW_HEIGHT
public static final int WINDOW_HEIGHT- See Also:
- Mappings:
Namespace Name Mixin selector named WINDOW_HEIGHT
Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;WINDOW_HEIGHT:I
intermediary field_32299
Lnet/minecraft/class_457;field_32299:I
official b
Lfnu;b:I
-
PAGE_OFFSET_X
private static final int PAGE_OFFSET_X- See Also:
- Mappings:
Namespace Name Mixin selector named PAGE_OFFSET_X
Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;PAGE_OFFSET_X:I
intermediary field_32306
Lnet/minecraft/class_457;field_32306:I
official x
Lfnu;x:I
-
PAGE_OFFSET_Y
private static final int PAGE_OFFSET_Y- See Also:
- Mappings:
Namespace Name Mixin selector named PAGE_OFFSET_Y
Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;PAGE_OFFSET_Y:I
intermediary field_32307
Lnet/minecraft/class_457;field_32307:I
official y
Lfnu;y:I
-
PAGE_WIDTH
public static final int PAGE_WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector named PAGE_WIDTH
Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;PAGE_WIDTH:I
intermediary field_32300
Lnet/minecraft/class_457;field_32300:I
official c
Lfnu;c:I
-
PAGE_HEIGHT
public static final int PAGE_HEIGHT- See Also:
- Mappings:
Namespace Name Mixin selector named PAGE_HEIGHT
Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;PAGE_HEIGHT:I
intermediary field_32301
Lnet/minecraft/class_457;field_32301:I
official d
Lfnu;d:I
-
TITLE_OFFSET_X
private static final int TITLE_OFFSET_X- See Also:
- Mappings:
Namespace Name Mixin selector named TITLE_OFFSET_X
Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;TITLE_OFFSET_X:I
intermediary field_32308
Lnet/minecraft/class_457;field_32308:I
official z
Lfnu;z:I
-
TITLE_OFFSET_Y
private static final int TITLE_OFFSET_Y- See Also:
- Mappings:
Namespace Name Mixin selector named TITLE_OFFSET_Y
Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;TITLE_OFFSET_Y:I
intermediary field_32309
Lnet/minecraft/class_457;field_32309:I
official A
Lfnu;A:I
-
field_32302
public static final int field_32302- See Also:
- Mappings:
Namespace Name Mixin selector named field_32302
Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;field_32302:I
intermediary field_32302
Lnet/minecraft/class_457;field_32302:I
official r
Lfnu;r:I
-
field_32303
public static final int field_32303- See Also:
- Mappings:
Namespace Name Mixin selector named field_32303
Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;field_32303:I
intermediary field_32303
Lnet/minecraft/class_457;field_32303:I
official s
Lfnu;s:I
-
field_32304
public static final int field_32304- See Also:
- Mappings:
Namespace Name Mixin selector named field_32304
Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;field_32304:I
intermediary field_32304
Lnet/minecraft/class_457;field_32304:I
official u
Lfnu;u:I
-
field_32305
public static final int field_32305- See Also:
- Mappings:
Namespace Name Mixin selector named field_32305
Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;field_32305:I
intermediary field_32305
Lnet/minecraft/class_457;field_32305:I
official v
Lfnu;v:I
-
field_45431
private static final double field_45431- See Also:
- Mappings:
Namespace Name Mixin selector named field_45431
Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;field_45431:D
intermediary field_45431
Lnet/minecraft/class_457;field_45431:D
official B
Lfnu;B:D
-
SAD_LABEL_TEXT
- Mappings:
Namespace Name Mixin selector named SAD_LABEL_TEXT
Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;SAD_LABEL_TEXT:Lnet/minecraft/text/Text;
intermediary field_26553
Lnet/minecraft/class_457;field_26553:Lnet/minecraft/class_2561;
official C
Lfnu;C:Lxp;
-
EMPTY_TEXT
- Mappings:
Namespace Name Mixin selector named EMPTY_TEXT
Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;EMPTY_TEXT:Lnet/minecraft/text/Text;
intermediary field_26554
Lnet/minecraft/class_457;field_26554:Lnet/minecraft/class_2561;
official D
Lfnu;D:Lxp;
-
ADVANCEMENTS_TEXT
- Mappings:
Namespace Name Mixin selector named ADVANCEMENTS_TEXT
Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;ADVANCEMENTS_TEXT:Lnet/minecraft/text/Text;
intermediary field_26555
Lnet/minecraft/class_457;field_26555:Lnet/minecraft/class_2561;
official E
Lfnu;E:Lxp;
-
layout
- Mappings:
Namespace Name Mixin selector named layout
Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;layout:Lnet/minecraft/client/gui/widget/ThreePartsLayoutWidget;
intermediary field_49530
Lnet/minecraft/class_457;field_49530:Lnet/minecraft/class_8132;
official F
Lfnu;F:Lfkt;
-
parent
- Mappings:
Namespace Name Mixin selector named parent
Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;parent:Lnet/minecraft/client/gui/screen/Screen;
intermediary field_49531
Lnet/minecraft/class_457;field_49531:Lnet/minecraft/class_437;
official G
Lfnu;G:Lfnf;
-
advancementHandler
- Mappings:
Namespace Name Mixin selector named advancementHandler
Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;advancementHandler:Lnet/minecraft/client/network/ClientAdvancementManager;
intermediary field_2721
Lnet/minecraft/class_457;field_2721:Lnet/minecraft/class_632;
official H
Lfnu;H:Lfxs;
-
tabs
- Mappings:
Namespace Name Mixin selector named tabs
Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;tabs:Ljava/util/Map;
intermediary field_2719
Lnet/minecraft/class_457;field_2719:Ljava/util/Map;
official I
Lfnu;I:Ljava/util/Map;
-
selectedTab
- Mappings:
Namespace Name Mixin selector named selectedTab
Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;selectedTab:Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;
intermediary field_2720
Lnet/minecraft/class_457;field_2720:Lnet/minecraft/class_454;
official J
Lfnu;J:Lfnq;
-
movingTab
private boolean movingTab- Mappings:
Namespace Name Mixin selector named movingTab
Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;movingTab:Z
intermediary field_2718
Lnet/minecraft/class_457;field_2718:Z
official K
Lfnu;K:Z
-
-
Constructor Details
-
AdvancementsScreen
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;<init>(Lnet/minecraft/client/network/ClientAdvancementManager;)V
intermediary <init>
Lnet/minecraft/class_457;<init>(Lnet/minecraft/class_632;)V
official <init>
Lfnu;<init>(Lfxs;)V
-
AdvancementsScreen
public AdvancementsScreen(ClientAdvancementManager advancementHandler, @Nullable @Nullable Screen parent) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;<init>(Lnet/minecraft/client/network/ClientAdvancementManager;Lnet/minecraft/client/gui/screen/Screen;)V
intermediary <init>
Lnet/minecraft/class_457;<init>(Lnet/minecraft/class_632;Lnet/minecraft/class_437;)V
official <init>
Lfnu;<init>(Lfxs;Lfnf;)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.
This should call
Screen.setInitialFocus()
to set the element that is initially focused. -
close
public void close() -
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:
- Mappings:
Namespace Name Mixin selector named mouseClicked
Lnet/minecraft/client/gui/Element;mouseClicked(DDI)Z
intermediary method_25402
Lnet/minecraft/class_364;method_25402(DDI)Z
official a
Lfjc;a(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:
- Mappings:
Namespace Name Mixin selector named keyPressed
Lnet/minecraft/client/gui/Element;keyPressed(III)Z
intermediary method_25404
Lnet/minecraft/class_364;method_25404(III)Z
official a
Lfjc;a(III)Z
-
render
- Specified by:
render
in interfaceDrawable
- Overrides:
render
in classScreen
- Mappings:
Namespace Name Mixin selector named render
Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)V
intermediary method_25394
Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)V
official a
Lfij;a(Lfgt;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:
- Mappings:
Namespace Name Mixin selector named mouseDragged
Lnet/minecraft/client/gui/Element;mouseDragged(DDIDD)Z
intermediary method_25403
Lnet/minecraft/class_364;method_25403(DDIDD)Z
official a
Lfjc;a(DDIDD)Z
-
mouseScrolled
public boolean mouseScrolled(double mouseX, double mouseY, double horizontalAmount, double verticalAmount) Callback for when a mouse button scroll event has been captured.- Specified by:
mouseScrolled
in interfaceElement
- Specified by:
mouseScrolled
in interfaceParentElement
- Parameters:
mouseX
- the X coordinate of the mousemouseY
- the Y coordinate of the mousehorizontalAmount
- the horizontal scroll amountverticalAmount
- the vertical scroll amount- Returns:
true
to indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named mouseScrolled
Lnet/minecraft/client/gui/Element;mouseScrolled(DDDD)Z
intermediary method_25401
Lnet/minecraft/class_364;method_25401(DDDD)Z
official a
Lfjc;a(DDDD)Z
-
drawAdvancementTree
- Mappings:
Namespace Name Mixin selector named drawAdvancementTree
Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;drawAdvancementTree(Lnet/minecraft/client/gui/DrawContext;IIII)V
intermediary method_2337
Lnet/minecraft/class_457;method_2337(Lnet/minecraft/class_332;IIII)V
official b
Lfnu;b(Lfgt;IIII)V
-
drawWindow
- Mappings:
Namespace Name Mixin selector named drawWindow
Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;drawWindow(Lnet/minecraft/client/gui/DrawContext;II)V
intermediary method_2334
Lnet/minecraft/class_457;method_2334(Lnet/minecraft/class_332;II)V
official a
Lfnu;a(Lfgt;II)V
-
drawWidgetTooltip
- Mappings:
Namespace Name Mixin selector named drawWidgetTooltip
Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;drawWidgetTooltip(Lnet/minecraft/client/gui/DrawContext;IIII)V
intermediary method_2338
Lnet/minecraft/class_457;method_2338(Lnet/minecraft/class_332;IIII)V
official c
Lfnu;c(Lfgt;IIII)V
-
onRootAdded
- Specified by:
onRootAdded
in interfaceAdvancementManager.Listener
- Mappings:
Namespace Name Mixin selector named onRootAdded
Lnet/minecraft/advancement/AdvancementManager$Listener;onRootAdded(Lnet/minecraft/advancement/PlacedAdvancement;)V
intermediary method_723
Lnet/minecraft/class_163$class_164;method_723(Lnet/minecraft/class_8781;)V
official a
Lak$a;a(Lag;)V
-
onRootRemoved
- Specified by:
onRootRemoved
in interfaceAdvancementManager.Listener
- Mappings:
Namespace Name Mixin selector named onRootRemoved
Lnet/minecraft/advancement/AdvancementManager$Listener;onRootRemoved(Lnet/minecraft/advancement/PlacedAdvancement;)V
intermediary method_720
Lnet/minecraft/class_163$class_164;method_720(Lnet/minecraft/class_8781;)V
official b
Lak$a;b(Lag;)V
-
onDependentAdded
- Specified by:
onDependentAdded
in interfaceAdvancementManager.Listener
- Mappings:
Namespace Name Mixin selector named onDependentAdded
Lnet/minecraft/advancement/AdvancementManager$Listener;onDependentAdded(Lnet/minecraft/advancement/PlacedAdvancement;)V
intermediary method_721
Lnet/minecraft/class_163$class_164;method_721(Lnet/minecraft/class_8781;)V
official c
Lak$a;c(Lag;)V
-
onDependentRemoved
- Specified by:
onDependentRemoved
in interfaceAdvancementManager.Listener
- Mappings:
Namespace Name Mixin selector named onDependentRemoved
Lnet/minecraft/advancement/AdvancementManager$Listener;onDependentRemoved(Lnet/minecraft/advancement/PlacedAdvancement;)V
intermediary method_719
Lnet/minecraft/class_163$class_164;method_719(Lnet/minecraft/class_8781;)V
official d
Lak$a;d(Lag;)V
-
setProgress
- Specified by:
setProgress
in interfaceClientAdvancementManager.Listener
- Mappings:
Namespace Name Mixin selector named setProgress
Lnet/minecraft/client/network/ClientAdvancementManager$Listener;setProgress(Lnet/minecraft/advancement/PlacedAdvancement;Lnet/minecraft/advancement/AdvancementProgress;)V
intermediary method_2865
Lnet/minecraft/class_632$class_633;method_2865(Lnet/minecraft/class_8781;Lnet/minecraft/class_167;)V
official a
Lfxs$a;a(Lag;Lah;)V
-
selectTab
- Specified by:
selectTab
in interfaceClientAdvancementManager.Listener
- Mappings:
Namespace Name Mixin selector named selectTab
Lnet/minecraft/client/network/ClientAdvancementManager$Listener;selectTab(Lnet/minecraft/advancement/AdvancementEntry;)V
intermediary method_2866
Lnet/minecraft/class_632$class_633;method_2866(Lnet/minecraft/class_8779;)V
official a
Lfxs$a;a(Laf;)V
-
onClear
public void onClear()- Specified by:
onClear
in interfaceAdvancementManager.Listener
- Mappings:
Namespace Name Mixin selector named onClear
Lnet/minecraft/advancement/AdvancementManager$Listener;onClear()V
intermediary method_722
Lnet/minecraft/class_163$class_164;method_722()V
official a
Lak$a;a()V
-
getAdvancementWidget
- Mappings:
Namespace Name Mixin selector named getAdvancementWidget
Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;getAdvancementWidget(Lnet/minecraft/advancement/PlacedAdvancement;)Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;
intermediary method_2335
Lnet/minecraft/class_457;method_2335(Lnet/minecraft/class_8781;)Lnet/minecraft/class_456;
official e
Lfnu;e(Lag;)Lfns;
-
getTab
- Mappings:
Namespace Name Mixin selector named getTab
Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;getTab(Lnet/minecraft/advancement/PlacedAdvancement;)Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;
intermediary method_2336
Lnet/minecraft/class_457;method_2336(Lnet/minecraft/class_8781;)Lnet/minecraft/class_454;
official f
Lfnu;f(Lag;)Lfnq;
-