Class AdvancementsScreen
java.lang.Object
net.minecraft.client.gui.GuiComponent
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.advancements.AdvancementsScreen
- All Implemented Interfaces:
AdvancementList.Listener
,ContainerEventHandler
,GuiEventListener
,Renderable
,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 static int
private static final Component
private AdvancementTab
private static int
private final Map<Advancement,
AdvancementTab> private static final ResourceLocation
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
font, height, itemRenderer, minecraft, passEvents, renderables, title, width
Fields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAdvancementWidget
(Advancement p_97393_) private AdvancementTab
getTab
(Advancement p_97395_) 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_) void
onAddAdvancementRoot
(Advancement p_97366_) void
onAddAdvancementTask
(Advancement p_97380_) void
void
onRemoveAdvancementRoot
(Advancement p_97372_) void
onRemoveAdvancementTask
(Advancement p_97388_) void
onSelectedTabChanged
(Advancement p_97391_) void
onUpdateAdvancementProgress
(Advancement p_97368_, AdvancementProgress p_97369_) void
removed()
void
private void
renderInside
(PoseStack p_97374_, int p_97375_, int p_97376_, int p_97377_, int p_97378_) private void
renderTooltips
(PoseStack p_97382_, int p_97383_, int p_97384_, int p_97385_, int p_97386_) void
renderWindow
(PoseStack p_97357_, int p_97358_, int p_97359_) Methods inherited from class net.minecraft.client.gui.screens.Screen
addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, children, clearWidgets, findNarratableWidget, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, narrationEnabled, onClose, onFilesDrop, rebuildWidgets, removeWidget, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderWithTooltip, resize, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, tick, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenError
Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blitOutlineBlack, disableScissor, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, enableScissor, fill, fillGradient, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
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
changeFocus, charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, mouseReleased, mouseScrolled, setInitialFocus
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
-
Field Details
-
WINDOW_LOCATION
-
TABS_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:
-
VERY_SAD_LABEL
-
NO_ADVANCEMENTS_LABEL
-
TITLE
-
advancements
-
tabs
-
selectedTab
-
isScrolling
private boolean isScrolling -
tabPage
private static int tabPage -
maxPages
private static int maxPages
-
-
Constructor Details
-
AdvancementsScreen
-
-
Method Details
-
init
protected void init() -
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
- 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
-
renderInside
private void renderInside(PoseStack p_97374_, int p_97375_, int p_97376_, int p_97377_, int p_97378_) -
renderWindow
-
renderTooltips
private void renderTooltips(PoseStack p_97382_, int p_97383_, int p_97384_, int p_97385_, int p_97386_) -
onAddAdvancementRoot
- Specified by:
onAddAdvancementRoot
in interfaceAdvancementList.Listener
-
onRemoveAdvancementRoot
- Specified by:
onRemoveAdvancementRoot
in interfaceAdvancementList.Listener
-
onAddAdvancementTask
- Specified by:
onAddAdvancementTask
in interfaceAdvancementList.Listener
-
onRemoveAdvancementTask
- Specified by:
onRemoveAdvancementTask
in interfaceAdvancementList.Listener
-
onUpdateAdvancementProgress
- Specified by:
onUpdateAdvancementProgress
in interfaceClientAdvancements.Listener
-
onSelectedTabChanged
- Specified by:
onSelectedTabChanged
in interfaceClientAdvancements.Listener
-
onAdvancementsCleared
public void onAdvancementsCleared()- Specified by:
onAdvancementsCleared
in interfaceAdvancementList.Listener
-
getAdvancementWidget
-
getTab
-