public class GuiScreenAdvancements extends GuiScreen implements ClientAdvancementManager.IListener
Modifier and Type | Field and Description |
---|---|
private ClientAdvancementManager |
clientAdvancementManager |
private boolean |
isScrolling |
private static int |
maxPages |
private int |
scrollMouseX |
private int |
scrollMouseY |
private GuiAdvancementTab |
selectedTab |
private static int |
tabPage |
private java.util.Map<Advancement,GuiAdvancementTab> |
tabs |
private static ResourceLocation |
TABS |
private static ResourceLocation |
WINDOW |
allowUserInput, buttonList, fontRenderer, height, itemRender, keyHandled, labelList, mc, mouseHandled, selectedButton, width
ICONS, OPTIONS_BACKGROUND, STAT_ICONS, zLevel
Constructor and Description |
---|
GuiScreenAdvancements(ClientAdvancementManager p_i47383_1_) |
Modifier and Type | Method and Description |
---|---|
protected void |
actionPerformed(GuiButton button) |
void |
advancementsCleared() |
void |
drawScreen(int mouseX,
int mouseY,
float partialTicks) |
GuiAdvancement |
getAdvancementGui(Advancement p_191938_1_) |
private GuiAdvancementTab |
getTab(Advancement p_191935_1_) |
void |
initGui() |
protected void |
keyTyped(char typedChar,
int keyCode) |
protected void |
mouseClicked(int mouseX,
int mouseY,
int mouseButton) |
void |
nonRootAdvancementAdded(Advancement advancementIn) |
void |
nonRootAdvancementRemoved(Advancement advancementIn) |
void |
onGuiClosed() |
void |
onUpdateAdvancementProgress(Advancement p_191933_1_,
AdvancementProgress p_191933_2_) |
private void |
renderInside(int p_191936_1_,
int p_191936_2_,
int p_191936_3_,
int p_191936_4_) |
private void |
renderToolTips(int p_191937_1_,
int p_191937_2_,
int p_191937_3_,
int p_191937_4_) |
void |
renderWindow(int p_191934_1_,
int p_191934_2_) |
void |
rootAdvancementAdded(Advancement advancementIn) |
void |
rootAdvancementRemoved(Advancement advancementIn) |
void |
setSelectedTab(Advancement p_193982_1_) |
addButton, confirmClicked, doesGuiPauseGame, drawBackground, drawDefaultBackground, drawHoveringText, drawHoveringText, drawHoveringText, drawWorldBackground, getClipboardString, getItemToolTip, handleComponentClick, handleComponentHover, handleInput, handleKeyboardInput, handleMouseInput, isAltKeyDown, isCtrlKeyDown, isFocused, isKeyComboCtrlA, isKeyComboCtrlC, isKeyComboCtrlV, isKeyComboCtrlX, isShiftKeyDown, mouseClickMove, mouseReleased, onResize, renderToolTip, sendChatMessage, sendChatMessage, setClipboardString, setFocused, setGuiSize, setText, setWorldAndResolution, updateScreen
drawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLine
private static final ResourceLocation WINDOW
private static final ResourceLocation TABS
private final ClientAdvancementManager clientAdvancementManager
private final java.util.Map<Advancement,GuiAdvancementTab> tabs
private GuiAdvancementTab selectedTab
private int scrollMouseX
private int scrollMouseY
private boolean isScrolling
private static int tabPage
private static int maxPages
public GuiScreenAdvancements(ClientAdvancementManager p_i47383_1_)
public void onGuiClosed()
onGuiClosed
in class GuiScreen
protected void mouseClicked(int mouseX, int mouseY, int mouseButton) throws java.io.IOException
mouseClicked
in class GuiScreen
java.io.IOException
protected void keyTyped(char typedChar, int keyCode) throws java.io.IOException
public void drawScreen(int mouseX, int mouseY, float partialTicks)
drawScreen
in class GuiScreen
private void renderInside(int p_191936_1_, int p_191936_2_, int p_191936_3_, int p_191936_4_)
public void renderWindow(int p_191934_1_, int p_191934_2_)
private void renderToolTips(int p_191937_1_, int p_191937_2_, int p_191937_3_, int p_191937_4_)
public void rootAdvancementAdded(Advancement advancementIn)
rootAdvancementAdded
in interface AdvancementList.Listener
public void rootAdvancementRemoved(Advancement advancementIn)
rootAdvancementRemoved
in interface AdvancementList.Listener
public void nonRootAdvancementAdded(Advancement advancementIn)
nonRootAdvancementAdded
in interface AdvancementList.Listener
public void nonRootAdvancementRemoved(Advancement advancementIn)
nonRootAdvancementRemoved
in interface AdvancementList.Listener
public void onUpdateAdvancementProgress(Advancement p_191933_1_, AdvancementProgress p_191933_2_)
onUpdateAdvancementProgress
in interface ClientAdvancementManager.IListener
public void setSelectedTab(@Nullable Advancement p_193982_1_)
setSelectedTab
in interface ClientAdvancementManager.IListener
public void advancementsCleared()
advancementsCleared
in interface AdvancementList.Listener
@Nullable public GuiAdvancement getAdvancementGui(Advancement p_191938_1_)
@Nullable private GuiAdvancementTab getTab(Advancement p_191935_1_)
protected void actionPerformed(GuiButton button) throws java.io.IOException
actionPerformed
in class GuiScreen
java.io.IOException