public class AdvancementsScreen extends Screen implements ClientAdvancementManager.IListener
Modifier and Type | Field and Description |
---|---|
private ClientAdvancementManager |
clientAdvancementManager |
private boolean |
isScrolling |
private static int |
maxPages |
private AdvancementTabGui |
selectedTab |
private static int |
tabPage |
private java.util.Map<Advancement,AdvancementTabGui> |
tabs |
private static ResourceLocation |
TABS |
private static ResourceLocation |
WINDOW |
buttons, children, font, height, itemRenderer, minecraft, passEvents, title, width
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
Constructor and Description |
---|
AdvancementsScreen(ClientAdvancementManager p_i47383_1_) |
Modifier and Type | Method and Description |
---|---|
void |
advancementsCleared() |
AdvancementEntryGui |
getAdvancementGui(Advancement p_191938_1_) |
private AdvancementTabGui |
getTab(Advancement p_191935_1_) |
protected void |
init() |
boolean |
keyPressed(int p_keyPressed_1_,
int p_keyPressed_2_,
int p_keyPressed_3_) |
boolean |
mouseClicked(double p_mouseClicked_1_,
double p_mouseClicked_3_,
int p_mouseClicked_5_) |
boolean |
mouseDragged(double p_mouseDragged_1_,
double p_mouseDragged_3_,
int p_mouseDragged_5_,
double p_mouseDragged_6_,
double p_mouseDragged_8_) |
void |
nonRootAdvancementAdded(Advancement advancementIn) |
void |
nonRootAdvancementRemoved(Advancement advancementIn) |
void |
onUpdateAdvancementProgress(Advancement advancementIn,
AdvancementProgress progress) |
void |
removed() |
void |
render(int p_render_1_,
int p_render_2_,
float p_render_3_) |
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 advancementIn) |
addButton, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, onClose, renderBackground, renderBackground, renderComponentHoverEffect, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, setSize, shouldCloseOnEsc, tick, wrapScreenError
getFocused, isDragging, setDragging, setFocused
blit, blit, blit, blit, blit, drawCenteredString, drawRightAlignedString, drawString, fill, fill, fillGradient, getBlitOffset, hLine, innerBlit, setBlitOffset, vLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
changeFocus, charTyped, func_212932_b, getEventListenerForPos, keyReleased, mouseReleased, mouseScrolled, setFocusedDefault
mouseMoved
private static final ResourceLocation WINDOW
private static final ResourceLocation TABS
private final ClientAdvancementManager clientAdvancementManager
private final java.util.Map<Advancement,AdvancementTabGui> tabs
private AdvancementTabGui selectedTab
private boolean isScrolling
private static int tabPage
private static int maxPages
public AdvancementsScreen(ClientAdvancementManager p_i47383_1_)
public boolean mouseClicked(double p_mouseClicked_1_, double p_mouseClicked_3_, int p_mouseClicked_5_)
mouseClicked
in interface IGuiEventListener
mouseClicked
in interface INestedGuiEventHandler
public boolean keyPressed(int p_keyPressed_1_, int p_keyPressed_2_, int p_keyPressed_3_)
keyPressed
in interface IGuiEventListener
keyPressed
in interface INestedGuiEventHandler
keyPressed
in class Screen
public void render(int p_render_1_, int p_render_2_, float p_render_3_)
render
in interface IRenderable
render
in class Screen
public boolean mouseDragged(double p_mouseDragged_1_, double p_mouseDragged_3_, int p_mouseDragged_5_, double p_mouseDragged_6_, double p_mouseDragged_8_)
mouseDragged
in interface IGuiEventListener
mouseDragged
in interface INestedGuiEventHandler
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.IListener
public void rootAdvancementRemoved(Advancement advancementIn)
rootAdvancementRemoved
in interface AdvancementList.IListener
public void nonRootAdvancementAdded(Advancement advancementIn)
nonRootAdvancementAdded
in interface AdvancementList.IListener
public void nonRootAdvancementRemoved(Advancement advancementIn)
nonRootAdvancementRemoved
in interface AdvancementList.IListener
public void onUpdateAdvancementProgress(Advancement advancementIn, AdvancementProgress progress)
onUpdateAdvancementProgress
in interface ClientAdvancementManager.IListener
public void setSelectedTab(@Nullable Advancement advancementIn)
setSelectedTab
in interface ClientAdvancementManager.IListener
public void advancementsCleared()
advancementsCleared
in interface AdvancementList.IListener
@Nullable public AdvancementEntryGui getAdvancementGui(Advancement p_191938_1_)
@Nullable private AdvancementTabGui getTab(Advancement p_191935_1_)