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/AdvancementsScreenintermediary net/minecraft/class_457official fon
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ClientAdvancementManagerprivate static final Textprivate static final Textstatic final intstatic final intstatic final intstatic final intprivate static final doubleprivate final ThreePartsLayoutWidgetprivate booleanstatic final intprivate static final intprivate static final intstatic final intprivate static final Textprivate @Nullable AdvancementTabprivate final Map<AdvancementEntry, AdvancementTab> private static final intprivate static final intstatic final intprivate static final Identifierstatic final intFields 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, narratorToggleButton, PANORAMA_RENDERER, ROTATING_PANORAMA_RENDERER, textRenderer, title, widthFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
ConstructorsConstructorDescriptionAdvancementsScreen(ClientAdvancementManager advancementHandler) AdvancementsScreen(ClientAdvancementManager advancementHandler, @Nullable Screen parent) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()private voiddrawAdvancementTree(DrawContext context, int mouseX, int mouseY, int x, int y) private voiddrawWidgetTooltip(DrawContext context, int mouseX, int mouseY, int x, int y) voiddrawWindow(DrawContext context, int x, int y) getAdvancementWidget(PlacedAdvancement advancement) private @Nullable AdvancementTabgetTab(PlacedAdvancement advancement) protected voidinit()Called when a screen should be initialized.protected voidbooleankeyPressed(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.booleanmouseScrolled(double mouseX, double mouseY, double horizontalAmount, double verticalAmount) Callback for when a mouse button scroll event has been captured.voidonClear()voidonDependentAdded(PlacedAdvancement dependent) voidonDependentRemoved(PlacedAdvancement dependent) voidonRootAdded(PlacedAdvancement root) voidvoidremoved()voidrender(DrawContext context, int mouseX, int mouseY, float delta) voidselectTab(@Nullable AdvancementEntry advancement) voidsetProgress(PlacedAdvancement advancement, AdvancementProgress progress) Methods inherited from class net.minecraft.client.gui.screen.Screen
addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyBlur, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, blur, children, clearAndInit, clearChildren, clearTooltip, filesDragged, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTitle, getTooltipFromItem, getUsageNarrationText, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrateScreenIfNarrationEnabled, onDisplayed, refreshNarrator, remove, renderBackground, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldCloseOnEsc, shouldPause, switchFocus, tick, updateNarrator, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocusedMethods 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.navigation.Navigable
getNavigationOrderMethods 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_TEXTURELnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;WINDOW_TEXTURE:Lnet/minecraft/util/Identifier;intermediary field_2717Lnet/minecraft/class_457;field_2717:Lnet/minecraft/class_2960;official xLfon;x:Lakr;
-
WINDOW_WIDTH
public static final int WINDOW_WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector named WINDOW_WIDTHLnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;WINDOW_WIDTH:Iintermediary field_32298Lnet/minecraft/class_457;field_32298:Iofficial aLfon;a:I
-
WINDOW_HEIGHT
public static final int WINDOW_HEIGHT- See Also:
- Mappings:
Namespace Name Mixin selector named WINDOW_HEIGHTLnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;WINDOW_HEIGHT:Iintermediary field_32299Lnet/minecraft/class_457;field_32299:Iofficial bLfon;b:I
-
PAGE_OFFSET_X
private static final int PAGE_OFFSET_X- See Also:
- Mappings:
Namespace Name Mixin selector named PAGE_OFFSET_XLnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;PAGE_OFFSET_X:Iintermediary field_32306Lnet/minecraft/class_457;field_32306:Iofficial yLfon;y:I
-
PAGE_OFFSET_Y
private static final int PAGE_OFFSET_Y- See Also:
- Mappings:
Namespace Name Mixin selector named PAGE_OFFSET_YLnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;PAGE_OFFSET_Y:Iintermediary field_32307Lnet/minecraft/class_457;field_32307:Iofficial zLfon;z:I
-
PAGE_WIDTH
public static final int PAGE_WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector named PAGE_WIDTHLnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;PAGE_WIDTH:Iintermediary field_32300Lnet/minecraft/class_457;field_32300:Iofficial cLfon;c:I
-
PAGE_HEIGHT
public static final int PAGE_HEIGHT- See Also:
- Mappings:
Namespace Name Mixin selector named PAGE_HEIGHTLnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;PAGE_HEIGHT:Iintermediary field_32301Lnet/minecraft/class_457;field_32301:Iofficial rLfon;r:I
-
TITLE_OFFSET_X
private static final int TITLE_OFFSET_X- See Also:
- Mappings:
Namespace Name Mixin selector named TITLE_OFFSET_XLnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;TITLE_OFFSET_X:Iintermediary field_32308Lnet/minecraft/class_457;field_32308:Iofficial ALfon;A:I
-
TITLE_OFFSET_Y
private static final int TITLE_OFFSET_Y- See Also:
- Mappings:
Namespace Name Mixin selector named TITLE_OFFSET_YLnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;TITLE_OFFSET_Y:Iintermediary field_32309Lnet/minecraft/class_457;field_32309:Iofficial BLfon;B:I
-
field_32302
public static final int field_32302- See Also:
- Mappings:
Namespace Name Mixin selector named field_32302Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;field_32302:Iintermediary field_32302Lnet/minecraft/class_457;field_32302:Iofficial sLfon;s:I
-
field_32303
public static final int field_32303- See Also:
- Mappings:
Namespace Name Mixin selector named field_32303Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;field_32303:Iintermediary field_32303Lnet/minecraft/class_457;field_32303:Iofficial uLfon;u:I
-
field_32304
public static final int field_32304- See Also:
- Mappings:
Namespace Name Mixin selector named field_32304Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;field_32304:Iintermediary field_32304Lnet/minecraft/class_457;field_32304:Iofficial vLfon;v:I
-
field_32305
public static final int field_32305- See Also:
- Mappings:
Namespace Name Mixin selector named field_32305Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;field_32305:Iintermediary field_32305Lnet/minecraft/class_457;field_32305:Iofficial wLfon;w:I
-
field_45431
private static final double field_45431- See Also:
- Mappings:
Namespace Name Mixin selector named field_45431Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;field_45431:Dintermediary field_45431Lnet/minecraft/class_457;field_45431:Dofficial CLfon;C:D
-
SAD_LABEL_TEXT
- Mappings:
Namespace Name Mixin selector named SAD_LABEL_TEXTLnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;SAD_LABEL_TEXT:Lnet/minecraft/text/Text;intermediary field_26553Lnet/minecraft/class_457;field_26553:Lnet/minecraft/class_2561;official DLfon;D:Lwz;
-
EMPTY_TEXT
- Mappings:
Namespace Name Mixin selector named EMPTY_TEXTLnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;EMPTY_TEXT:Lnet/minecraft/text/Text;intermediary field_26554Lnet/minecraft/class_457;field_26554:Lnet/minecraft/class_2561;official ELfon;E:Lwz;
-
ADVANCEMENTS_TEXT
- Mappings:
Namespace Name Mixin selector named ADVANCEMENTS_TEXTLnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;ADVANCEMENTS_TEXT:Lnet/minecraft/text/Text;intermediary field_26555Lnet/minecraft/class_457;field_26555:Lnet/minecraft/class_2561;official FLfon;F:Lwz;
-
layout
- Mappings:
Namespace Name Mixin selector named layoutLnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;layout:Lnet/minecraft/client/gui/widget/ThreePartsLayoutWidget;intermediary field_49530Lnet/minecraft/class_457;field_49530:Lnet/minecraft/class_8132;official GLfon;G:Lflz;
-
parent
- Mappings:
Namespace Name Mixin selector named parentLnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;parent:Lnet/minecraft/client/gui/screen/Screen;intermediary field_49531Lnet/minecraft/class_457;field_49531:Lnet/minecraft/class_437;official HLfon;H:Lfod;
-
advancementHandler
- Mappings:
Namespace Name Mixin selector named advancementHandlerLnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;advancementHandler:Lnet/minecraft/client/network/ClientAdvancementManager;intermediary field_2721Lnet/minecraft/class_457;field_2721:Lnet/minecraft/class_632;official ILfon;I:Lfza;
-
tabs
- Mappings:
Namespace Name Mixin selector named tabsLnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;tabs:Ljava/util/Map;intermediary field_2719Lnet/minecraft/class_457;field_2719:Ljava/util/Map;official JLfon;J:Ljava/util/Map;
-
selectedTab
- Mappings:
Namespace Name Mixin selector named selectedTabLnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;selectedTab:Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;intermediary field_2720Lnet/minecraft/class_457;field_2720:Lnet/minecraft/class_454;official KLfon;K:Lfoj;
-
movingTab
private boolean movingTab- Mappings:
Namespace Name Mixin selector named movingTabLnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;movingTab:Zintermediary field_2718Lnet/minecraft/class_457;field_2718:Zofficial LLfon;L:Z
-
-
Constructor Details
-
AdvancementsScreen
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;<init>(Lnet/minecraft/client/network/ClientAdvancementManager;)Vintermediary <init>Lnet/minecraft/class_457;<init>(Lnet/minecraft/class_632;)Vofficial <init>Lfon;<init>(Lfza;)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;)Vintermediary <init>Lnet/minecraft/class_457;<init>(Lnet/minecraft/class_632;Lnet/minecraft/class_437;)Vofficial <init>Lfon;<init>(Lfza;Lfod;)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 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:
- Mappings:
Namespace Name Mixin selector named mouseClickedLnet/minecraft/client/gui/Element;mouseClicked(DDI)Zintermediary method_25402Lnet/minecraft/class_364;method_25402(DDI)Zofficial aLfki;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 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:
- Mappings:
Namespace Name Mixin selector named keyPressedLnet/minecraft/client/gui/Element;keyPressed(III)Zintermediary method_25404Lnet/minecraft/class_364;method_25404(III)Zofficial aLfki;a(III)Z
-
render
- Specified by:
renderin interfaceDrawable- Overrides:
renderin classScreen- Mappings:
Namespace Name Mixin selector named renderLnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)Vintermediary method_25394Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)Vofficial aLfjp;a(Lfhz;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:
- Mappings:
Namespace Name Mixin selector named mouseDraggedLnet/minecraft/client/gui/Element;mouseDragged(DDIDD)Zintermediary method_25403Lnet/minecraft/class_364;method_25403(DDIDD)Zofficial aLfki;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:
mouseScrolledin interfaceElement- Specified by:
mouseScrolledin interfaceParentElement- Parameters:
mouseX- the X coordinate of the mousemouseY- the Y coordinate of the mousehorizontalAmount- the horizontal scroll amountverticalAmount- the vertical scroll amount- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named mouseScrolledLnet/minecraft/client/gui/Element;mouseScrolled(DDDD)Zintermediary method_25401Lnet/minecraft/class_364;method_25401(DDDD)Zofficial aLfki;a(DDDD)Z
-
drawAdvancementTree
- Mappings:
Namespace Name Mixin selector named drawAdvancementTreeLnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;drawAdvancementTree(Lnet/minecraft/client/gui/DrawContext;IIII)Vintermediary method_2337Lnet/minecraft/class_457;method_2337(Lnet/minecraft/class_332;IIII)Vofficial bLfon;b(Lfhz;IIII)V
-
drawWindow
- Mappings:
Namespace Name Mixin selector named drawWindowLnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;drawWindow(Lnet/minecraft/client/gui/DrawContext;II)Vintermediary method_2334Lnet/minecraft/class_457;method_2334(Lnet/minecraft/class_332;II)Vofficial aLfon;a(Lfhz;II)V
-
drawWidgetTooltip
- Mappings:
Namespace Name Mixin selector named drawWidgetTooltipLnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;drawWidgetTooltip(Lnet/minecraft/client/gui/DrawContext;IIII)Vintermediary method_2338Lnet/minecraft/class_457;method_2338(Lnet/minecraft/class_332;IIII)Vofficial cLfon;c(Lfhz;IIII)V
-
onRootAdded
- Specified by:
onRootAddedin interfaceAdvancementManager.Listener- Mappings:
Namespace Name Mixin selector named onRootAddedLnet/minecraft/advancement/AdvancementManager$Listener;onRootAdded(Lnet/minecraft/advancement/PlacedAdvancement;)Vintermediary method_723Lnet/minecraft/class_163$class_164;method_723(Lnet/minecraft/class_8781;)Vofficial aLal$a;a(Lah;)V
-
onRootRemoved
- Specified by:
onRootRemovedin interfaceAdvancementManager.Listener- Mappings:
Namespace Name Mixin selector named onRootRemovedLnet/minecraft/advancement/AdvancementManager$Listener;onRootRemoved(Lnet/minecraft/advancement/PlacedAdvancement;)Vintermediary method_720Lnet/minecraft/class_163$class_164;method_720(Lnet/minecraft/class_8781;)Vofficial bLal$a;b(Lah;)V
-
onDependentAdded
- Specified by:
onDependentAddedin interfaceAdvancementManager.Listener- Mappings:
Namespace Name Mixin selector named onDependentAddedLnet/minecraft/advancement/AdvancementManager$Listener;onDependentAdded(Lnet/minecraft/advancement/PlacedAdvancement;)Vintermediary method_721Lnet/minecraft/class_163$class_164;method_721(Lnet/minecraft/class_8781;)Vofficial cLal$a;c(Lah;)V
-
onDependentRemoved
- Specified by:
onDependentRemovedin interfaceAdvancementManager.Listener- Mappings:
Namespace Name Mixin selector named onDependentRemovedLnet/minecraft/advancement/AdvancementManager$Listener;onDependentRemoved(Lnet/minecraft/advancement/PlacedAdvancement;)Vintermediary method_719Lnet/minecraft/class_163$class_164;method_719(Lnet/minecraft/class_8781;)Vofficial dLal$a;d(Lah;)V
-
setProgress
- Specified by:
setProgressin interfaceClientAdvancementManager.Listener- Mappings:
Namespace Name Mixin selector named setProgressLnet/minecraft/client/network/ClientAdvancementManager$Listener;setProgress(Lnet/minecraft/advancement/PlacedAdvancement;Lnet/minecraft/advancement/AdvancementProgress;)Vintermediary method_2865Lnet/minecraft/class_632$class_633;method_2865(Lnet/minecraft/class_8781;Lnet/minecraft/class_167;)Vofficial aLfza$a;a(Lah;Lai;)V
-
selectTab
- Specified by:
selectTabin interfaceClientAdvancementManager.Listener- Mappings:
Namespace Name Mixin selector named selectTabLnet/minecraft/client/network/ClientAdvancementManager$Listener;selectTab(Lnet/minecraft/advancement/AdvancementEntry;)Vintermediary method_2866Lnet/minecraft/class_632$class_633;method_2866(Lnet/minecraft/class_8779;)Vofficial aLfza$a;a(Lag;)V
-
onClear
public void onClear()- Specified by:
onClearin interfaceAdvancementManager.Listener- Mappings:
Namespace Name Mixin selector named onClearLnet/minecraft/advancement/AdvancementManager$Listener;onClear()Vintermediary method_722Lnet/minecraft/class_163$class_164;method_722()Vofficial aLal$a;a()V
-
getAdvancementWidget
- Mappings:
Namespace Name Mixin selector named getAdvancementWidgetLnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;getAdvancementWidget(Lnet/minecraft/advancement/PlacedAdvancement;)Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;intermediary method_2335Lnet/minecraft/class_457;method_2335(Lnet/minecraft/class_8781;)Lnet/minecraft/class_456;official eLfon;e(Lah;)Lfol;
-
getTab
- Mappings:
Namespace Name Mixin selector named getTabLnet/minecraft/client/gui/screen/advancement/AdvancementsScreen;getTab(Lnet/minecraft/advancement/PlacedAdvancement;)Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;intermediary method_2336Lnet/minecraft/class_457;method_2336(Lnet/minecraft/class_8781;)Lnet/minecraft/class_454;official fLfon;f(Lah;)Lfoj;
-