Class AdvancementsScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.advancements.AdvancementsScreen
- All Implemented Interfaces:
AdvancementTree.Listener, ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement, ClientAdvancements.Listener
-
Nested Class Summary
Nested classes/interfaces inherited from class Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ClientAdvancementsprivate static final intprivate static final intstatic final intstatic final intstatic final intstatic final intprivate booleanprivate final @Nullable Screenprivate final HeaderAndFooterLayoutprivate static intprivate static final Componentprivate static final doubleprivate @Nullable AdvancementTabprivate static intprivate final Map<AdvancementHolder, AdvancementTab> private static final Componentprivate static final Componentstatic final intstatic final intstatic final intprivate static final intprivate static final intprivate static final Identifierprivate static final intprivate static final intstatic final intFields inherited from class Screen
FADE_IN_TIME, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, renderables, screenExecutor, title, width -
Constructor Summary
ConstructorsConstructorDescriptionAdvancementsScreen(ClientAdvancements advancements) AdvancementsScreen(ClientAdvancements advancements, @Nullable Screen lastScreen) -
Method Summary
Modifier and TypeMethodDescription@Nullable AdvancementWidgetprivate @Nullable AdvancementTabgetTab(AdvancementNode node) protected voidinit()booleankeyPressed(KeyEvent event) booleanmouseClicked(MouseButtonEvent event, boolean doubleClick) booleanmouseDragged(MouseButtonEvent event, double dx, double dy) booleanmouseReleased(MouseButtonEvent event) booleanmouseScrolled(double x, double y, double scrollX, double scrollY) voidvoidvoidvoidonClose()voidvoidvoidonSelectedTabChanged(@Nullable AdvancementHolder selectedTab) voidonUpdateAdvancementProgress(AdvancementNode advancement, AdvancementProgress progress) voidremoved()voidrender(GuiGraphics graphics, int mouseX, int mouseY, float a) Renders the graphical user interface (GUI) element.private voidrenderInside(GuiGraphics graphics, int xo, int yo) private voidrenderTooltips(GuiGraphics graphics, int mouseX, int mouseY, int xo, int yo) voidrenderWindow(GuiGraphics graphics, int xo, int yo, int mouseX, int mouseY) protected voidMethods inherited from class Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, canInterruptWithAnotherScreen, changeFocus, children, clearFocus, clearWidgets, clickCommandAction, clickUrlAction, defaultHandleClickEvent, defaultHandleGameClickEvent, fadeWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleDelayedNarration, init, insertText, isAllowedInPortal, isInGameUi, isMouseOver, isPauseScreen, isValidCharacterForName, onFilesDrop, panoramaShouldSpin, rebuildWidgets, removeWidget, renderBackground, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltipAndSubtitles, resize, setInitialFocus, setInitialFocus, shouldCloseOnEsc, shouldNarrateNavigation, showsActiveEffects, tick, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatusMethods inherited from class AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContainerEventHandler
charTyped, getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, isFocused, keyReleased, nextFocusPath, setFocusedMethods inherited from interface GuiEventListener
mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface TabOrderedElement
getTabOrderGroup
-
Field Details
-
WINDOW_LOCATION
-
WINDOW_WIDTH
public static final int WINDOW_WIDTH- See Also:
-
WINDOW_HEIGHT
public static final int WINDOW_HEIGHT- See Also:
-
WINDOW_INSIDE_X
private static final int WINDOW_INSIDE_X- See Also:
-
WINDOW_INSIDE_Y
private static final int WINDOW_INSIDE_Y- See Also:
-
WINDOW_INSIDE_WIDTH
public static final int WINDOW_INSIDE_WIDTH- See Also:
-
WINDOW_INSIDE_HEIGHT
public static final int WINDOW_INSIDE_HEIGHT- See Also:
-
WINDOW_TITLE_X
private static final int WINDOW_TITLE_X- See Also:
-
WINDOW_TITLE_Y
private static final int WINDOW_TITLE_Y- See Also:
-
BACKGROUND_TEXTURE_WIDTH
private static final int BACKGROUND_TEXTURE_WIDTH- See Also:
-
BACKGROUND_TEXTURE_HEIGHT
private static final int BACKGROUND_TEXTURE_HEIGHT- See Also:
-
BACKGROUND_TILE_WIDTH
public static final int BACKGROUND_TILE_WIDTH- See Also:
-
BACKGROUND_TILE_HEIGHT
public static final int BACKGROUND_TILE_HEIGHT- See Also:
-
BACKGROUND_TILE_COUNT_X
public static final int BACKGROUND_TILE_COUNT_X- See Also:
-
BACKGROUND_TILE_COUNT_Y
public static final int BACKGROUND_TILE_COUNT_Y- See Also:
-
SCROLL_SPEED
private static final double SCROLL_SPEED- See Also:
-
VERY_SAD_LABEL
-
NO_ADVANCEMENTS_LABEL
-
TITLE
-
layout
-
lastScreen
-
advancements
-
tabs
-
selectedTab
-
isScrolling
private boolean isScrolling -
tabPage
private static int tabPage -
maxPages
private static int maxPages
-
-
Constructor Details
-
AdvancementsScreen
-
AdvancementsScreen
-
-
Method Details
-
init
-
repositionElements
protected void repositionElements()- Overrides:
repositionElementsin classScreen
-
onClose
-
removed
-
mouseClicked
- Specified by:
mouseClickedin interfaceContainerEventHandler- Specified by:
mouseClickedin interfaceGuiEventListener
-
keyPressed
- Specified by:
keyPressedin interfaceContainerEventHandler- Specified by:
keyPressedin interfaceGuiEventListener- Overrides:
keyPressedin classScreen
-
render
Description copied from interface:RenderableRenders the graphical user interface (GUI) element.- Specified by:
renderin interfaceRenderable- Overrides:
renderin classScreen- Parameters:
graphics- the GuiGraphics object used for rendering.mouseX- the x-coordinate of the mouse cursor.mouseY- the y-coordinate of the mouse cursor.a- the partial tick time.
-
mouseDragged
- Specified by:
mouseDraggedin interfaceContainerEventHandler- Specified by:
mouseDraggedin interfaceGuiEventListener
-
mouseReleased
- Specified by:
mouseReleasedin interfaceContainerEventHandler- Specified by:
mouseReleasedin interfaceGuiEventListener
-
mouseScrolled
public boolean mouseScrolled(double x, double y, double scrollX, double scrollY) - Specified by:
mouseScrolledin interfaceContainerEventHandler- Specified by:
mouseScrolledin interfaceGuiEventListener
-
renderInside
-
renderWindow
-
renderTooltips
-
onAddAdvancementRoot
- Specified by:
onAddAdvancementRootin interfaceAdvancementTree.Listener
-
onRemoveAdvancementRoot
- Specified by:
onRemoveAdvancementRootin interfaceAdvancementTree.Listener
-
onAddAdvancementTask
- Specified by:
onAddAdvancementTaskin interfaceAdvancementTree.Listener
-
onRemoveAdvancementTask
- Specified by:
onRemoveAdvancementTaskin interfaceAdvancementTree.Listener
-
onUpdateAdvancementProgress
- Specified by:
onUpdateAdvancementProgressin interfaceClientAdvancements.Listener
-
onSelectedTabChanged
- Specified by:
onSelectedTabChangedin interfaceClientAdvancements.Listener
-
onAdvancementsCleared
public void onAdvancementsCleared()- Specified by:
onAdvancementsClearedin interfaceAdvancementTree.Listener
-
getAdvancementWidget
-
getTab
-