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
public class AdvancementsScreen extends Screen implements ClientAdvancementManager.IListener
-
-
Field Summary
Fields Modifier and Type Field Description private ClientAdvancementManager
advancements
private boolean
isScrolling
private static int
maxPages
private static ITextComponent
NO_ADVANCEMENTS_LABEL
private AdvancementTabGui
selectedTab
private static int
tabPage
private java.util.Map<Advancement,AdvancementTabGui>
tabs
private static ResourceLocation
TABS_LOCATION
private static ITextComponent
TITLE
private static ITextComponent
VERY_SAD_LABEL
private static ResourceLocation
WINDOW_LOCATION
-
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
Constructors Constructor Description AdvancementsScreen(ClientAdvancementManager p_i47383_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AdvancementEntryGui
getAdvancementWidget(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
onAdvancementsCleared()
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 Detail
-
WINDOW_LOCATION
private static final ResourceLocation WINDOW_LOCATION
-
TABS_LOCATION
private static final ResourceLocation TABS_LOCATION
-
VERY_SAD_LABEL
private static final ITextComponent VERY_SAD_LABEL
-
NO_ADVANCEMENTS_LABEL
private static final ITextComponent NO_ADVANCEMENTS_LABEL
-
TITLE
private static final ITextComponent TITLE
-
advancements
private final ClientAdvancementManager advancements
-
tabs
private final java.util.Map<Advancement,AdvancementTabGui> tabs
-
selectedTab
private AdvancementTabGui selectedTab
-
isScrolling
private boolean isScrolling
-
tabPage
private static int tabPage
-
maxPages
private static int maxPages
-
-
Constructor Detail
-
AdvancementsScreen
public AdvancementsScreen(ClientAdvancementManager p_i47383_1_)
-
-
Method Detail
-
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
public void render(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_)
- 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
public void renderWindow(MatrixStack p_238695_1_, int p_238695_2_, int p_238695_3_)
-
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
public void onAddAdvancementRoot(Advancement p_191931_1_)
- Specified by:
onAddAdvancementRoot
in interfaceAdvancementList.IListener
-
onRemoveAdvancementRoot
public void onRemoveAdvancementRoot(Advancement p_191928_1_)
- Specified by:
onRemoveAdvancementRoot
in interfaceAdvancementList.IListener
-
onAddAdvancementTask
public void onAddAdvancementTask(Advancement p_191932_1_)
- Specified by:
onAddAdvancementTask
in interfaceAdvancementList.IListener
-
onRemoveAdvancementTask
public void onRemoveAdvancementTask(Advancement p_191929_1_)
- Specified by:
onRemoveAdvancementTask
in interfaceAdvancementList.IListener
-
onUpdateAdvancementProgress
public void onUpdateAdvancementProgress(Advancement p_191933_1_, AdvancementProgress p_191933_2_)
- Specified by:
onUpdateAdvancementProgress
in interfaceClientAdvancementManager.IListener
-
onSelectedTabChanged
public void onSelectedTabChanged(@Nullable Advancement p_193982_1_)
- Specified by:
onSelectedTabChanged
in interfaceClientAdvancementManager.IListener
-
onAdvancementsCleared
public void onAdvancementsCleared()
- Specified by:
onAdvancementsCleared
in interfaceAdvancementList.IListener
-
getAdvancementWidget
@Nullable public AdvancementEntryGui getAdvancementWidget(Advancement p_191938_1_)
-
getTab
@Nullable private AdvancementTabGui getTab(Advancement p_191935_1_)
-
-