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 net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ClientAdvancements
static final int
static final int
static final int
static final int
private boolean
private final Screen
private final HeaderAndFooterLayout
private static int
private static final Component
private static final double
private AdvancementTab
private static int
private final Map
<AdvancementHolder, AdvancementTab> private static final Component
private static final Component
static final int
static final int
static final int
private static final int
private static final int
private static final ResourceLocation
private static final int
private static final int
static final int
Fields inherited from class net.minecraft.client.gui.screens.Screen
CUBE_MAP, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, PANORAMA, renderables, screenExecutor, title, width
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
ConstructorDescriptionAdvancementsScreen
(ClientAdvancements p_97340_) AdvancementsScreen
(ClientAdvancements p_331393_, Screen p_331693_) -
Method Summary
Modifier and TypeMethodDescriptiongetAdvancementWidget
(AdvancementNode p_300894_) private AdvancementTab
getTab
(AdvancementNode p_301151_) protected void
init()
boolean
keyPressed
(int p_97353_, int p_97354_, int p_97355_) boolean
mouseClicked
(double p_97343_, double p_97344_, int p_97345_) boolean
mouseDragged
(double p_97347_, double p_97348_, int p_97349_, double p_97350_, double p_97351_) boolean
mouseScrolled
(double p_295690_, double p_295286_, double p_295339_, double p_296270_) void
onAddAdvancementRoot
(AdvancementNode p_301276_) void
onAddAdvancementTask
(AdvancementNode p_301205_) void
void
onClose()
void
onRemoveAdvancementRoot
(AdvancementNode p_301028_) void
onRemoveAdvancementTask
(AdvancementNode p_301004_) void
onSelectedTabChanged
(AdvancementHolder p_301084_) void
onUpdateAdvancementProgress
(AdvancementNode p_301161_, AdvancementProgress p_97369_) void
removed()
void
render
(GuiGraphics p_282589_, int p_282255_, int p_283354_, float p_283123_) Neo: mixins targeting this method won't fire for container screens asAbstractContainerScreen.render(net.minecraft.client.gui.GuiGraphics, int, int, float)
replicates this method in place of a super call to insert an eventprivate void
renderInside
(GuiGraphics p_282012_, int p_97375_, int p_97376_, int p_97377_, int p_97378_) private void
renderTooltips
(GuiGraphics p_282784_, int p_283556_, int p_282458_, int p_281519_, int p_283371_) void
renderWindow
(GuiGraphics p_283395_, int p_281890_, int p_282532_) protected void
Methods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearTooltipForNextRenderPass, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, onFilesDrop, rebuildWidgets, removeWidget, renderBackground, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, tick, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatus, wrapScreenError
Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
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.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseReleased, nextFocusPath, setFocused
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
Methods inherited from interface net.minecraft.client.gui.components.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_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
protected void init() -
repositionElements
protected void repositionElements()- Overrides:
repositionElements
in classScreen
-
onClose
public void onClose() -
removed
public void removed() -
mouseClicked
public boolean mouseClicked(double p_97343_, double p_97344_, int p_97345_) - Specified by:
mouseClicked
in interfaceContainerEventHandler
- Specified by:
mouseClicked
in interfaceGuiEventListener
-
keyPressed
public boolean keyPressed(int p_97353_, int p_97354_, int p_97355_) - Specified by:
keyPressed
in interfaceContainerEventHandler
- Specified by:
keyPressed
in interfaceGuiEventListener
- Overrides:
keyPressed
in classScreen
-
render
Description copied from class:Screen
Neo: mixins targeting this method won't fire for container screens asAbstractContainerScreen.render(net.minecraft.client.gui.GuiGraphics, int, int, float)
replicates this method in place of a super call to insert an event- Specified by:
render
in interfaceRenderable
- Overrides:
render
in classScreen
-
mouseDragged
public boolean mouseDragged(double p_97347_, double p_97348_, int p_97349_, double p_97350_, double p_97351_) - Specified by:
mouseDragged
in interfaceContainerEventHandler
- Specified by:
mouseDragged
in interfaceGuiEventListener
-
mouseScrolled
public boolean mouseScrolled(double p_295690_, double p_295286_, double p_295339_, double p_296270_) - Specified by:
mouseScrolled
in interfaceContainerEventHandler
- Specified by:
mouseScrolled
in interfaceGuiEventListener
-
renderInside
private void renderInside(GuiGraphics p_282012_, int p_97375_, int p_97376_, int p_97377_, int p_97378_) -
renderWindow
-
renderTooltips
private void renderTooltips(GuiGraphics p_282784_, int p_283556_, int p_282458_, int p_281519_, int p_283371_) -
onAddAdvancementRoot
- Specified by:
onAddAdvancementRoot
in interfaceAdvancementTree.Listener
-
onRemoveAdvancementRoot
- Specified by:
onRemoveAdvancementRoot
in interfaceAdvancementTree.Listener
-
onAddAdvancementTask
- Specified by:
onAddAdvancementTask
in interfaceAdvancementTree.Listener
-
onRemoveAdvancementTask
- Specified by:
onRemoveAdvancementTask
in interfaceAdvancementTree.Listener
-
onUpdateAdvancementProgress
- Specified by:
onUpdateAdvancementProgress
in interfaceClientAdvancements.Listener
-
onSelectedTabChanged
- Specified by:
onSelectedTabChanged
in interfaceClientAdvancements.Listener
-
onAdvancementsCleared
public void onAdvancementsCleared()- Specified by:
onAdvancementsCleared
in interfaceAdvancementTree.Listener
-
getAdvancementWidget
-
getTab
-