Class AdvancementsScreen
java.lang.Object
net.minecraft.client.gui.AbstractGui
net.minecraft.client.gui.FocusableGui
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.advancements.AdvancementsScreen
- All Implemented Interfaces:
AdvancementList.IListener
,IGuiEventListener
,INestedGuiEventHandler
,IRenderable
,IScreen
,ClientAdvancementManager.IListener
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ClientAdvancementManager
private boolean
private static int
private static final ITextComponent
private AdvancementTabGui
private static int
private final Map<Advancement,
AdvancementTabGui> private static final ResourceLocation
private static final ITextComponent
private static final ITextComponent
private static final ResourceLocation
Fields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, font, height, itemRenderer, minecraft, passEvents, title, width
Fields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAdvancementWidget
(Advancement p_191938_1_) private AdvancementTabGui
getTab
(Advancement p_191935_1_) protected void
init()
boolean
keyPressed
(int p_231046_1_, int p_231046_2_, int p_231046_3_) boolean
mouseClicked
(double p_231044_1_, double p_231044_3_, int p_231044_5_) boolean
mouseDragged
(double p_231045_1_, double p_231045_3_, int p_231045_5_, double p_231045_6_, double p_231045_8_) void
onAddAdvancementRoot
(Advancement p_191931_1_) void
onAddAdvancementTask
(Advancement p_191932_1_) void
void
onRemoveAdvancementRoot
(Advancement p_191928_1_) void
onRemoveAdvancementTask
(Advancement p_191929_1_) void
onSelectedTabChanged
(Advancement p_193982_1_) void
onUpdateAdvancementProgress
(Advancement p_191933_1_, AdvancementProgress p_191933_2_) void
removed()
void
render
(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_) private void
renderInside
(MatrixStack p_238696_1_, int p_238696_2_, int p_238696_3_, int p_238696_4_, int p_238696_5_) private void
renderTooltips
(MatrixStack p_238697_1_, int p_238697_2_, int p_238697_3_, int p_238697_4_, int p_238697_5_) void
renderWindow
(MatrixStack p_238695_1_, int p_238695_2_, int p_238695_3_) Methods inherited from class net.minecraft.client.gui.screen.Screen
addButton, addWidget, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, onClose, onFilesDrop, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderToolTip, renderWrappedToolTip, resize, sendMessage, sendMessage, shouldCloseOnEsc, tick, wrapScreenError
Methods inherited from class net.minecraft.client.gui.FocusableGui
getFocused, isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.AbstractGui
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, 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.IGuiEventListener
mouseMoved
Methods inherited from interface net.minecraft.client.gui.INestedGuiEventHandler
changeFocus, charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, mouseReleased, mouseScrolled, setInitialFocus
-
Field Details
-
WINDOW_LOCATION
-
TABS_LOCATION
-
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_231044_1_, double p_231044_3_, int p_231044_5_) - Specified by:
mouseClicked
in interfaceIGuiEventListener
- Specified by:
mouseClicked
in interfaceINestedGuiEventHandler
-
keyPressed
public boolean keyPressed(int p_231046_1_, int p_231046_2_, int p_231046_3_) - Specified by:
keyPressed
in interfaceIGuiEventListener
- Specified by:
keyPressed
in interfaceINestedGuiEventHandler
- Overrides:
keyPressed
in classScreen
-
render
- Specified by:
render
in interfaceIRenderable
- Overrides:
render
in classScreen
-
mouseDragged
public boolean mouseDragged(double p_231045_1_, double p_231045_3_, int p_231045_5_, double p_231045_6_, double p_231045_8_) - Specified by:
mouseDragged
in interfaceIGuiEventListener
- Specified by:
mouseDragged
in interfaceINestedGuiEventHandler
-
renderInside
private void renderInside(MatrixStack p_238696_1_, int p_238696_2_, int p_238696_3_, int p_238696_4_, int p_238696_5_) -
renderWindow
-
renderTooltips
private void renderTooltips(MatrixStack p_238697_1_, int p_238697_2_, int p_238697_3_, int p_238697_4_, int p_238697_5_) -
onAddAdvancementRoot
- Specified by:
onAddAdvancementRoot
in interfaceAdvancementList.IListener
-
onRemoveAdvancementRoot
- Specified by:
onRemoveAdvancementRoot
in interfaceAdvancementList.IListener
-
onAddAdvancementTask
- Specified by:
onAddAdvancementTask
in interfaceAdvancementList.IListener
-
onRemoveAdvancementTask
- Specified by:
onRemoveAdvancementTask
in interfaceAdvancementList.IListener
-
onUpdateAdvancementProgress
- Specified by:
onUpdateAdvancementProgress
in interfaceClientAdvancementManager.IListener
-
onSelectedTabChanged
- Specified by:
onSelectedTabChanged
in interfaceClientAdvancementManager.IListener
-
onAdvancementsCleared
public void onAdvancementsCleared()- Specified by:
onAdvancementsCleared
in interfaceAdvancementList.IListener
-
getAdvancementWidget
-
getTab
-