Class AdvancementTab
java.lang.Object
net.minecraft.client.gui.GuiComponent
net.minecraft.client.gui.screens.advancements.AdvancementTab
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Advancement
private boolean
private final DisplayInfo
private float
private final ItemStack
private final int
private int
private int
private final Minecraft
private int
private int
private int
private final AdvancementWidget
private final AdvancementsScreen
private double
private double
private final Component
private final AdvancementTabType
private final Map<Advancement,
AdvancementWidget> Fields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, LIGHT_DIRT_BACKGROUND, STATS_ICON_LOCATION
-
Constructor Summary
ConstructorDescriptionAdvancementTab
(Minecraft mc, AdvancementsScreen screen, AdvancementTabType type, int index, int page, Advancement adv, DisplayInfo info) AdvancementTab
(Minecraft p_97145_, AdvancementsScreen p_97146_, AdvancementTabType p_97147_, int p_97148_, Advancement p_97149_, DisplayInfo p_97150_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAdvancement
(Advancement p_97179_) private void
addWidget
(AdvancementWidget p_97176_, Advancement p_97177_) static AdvancementTab
create
(Minecraft p_97171_, AdvancementsScreen p_97172_, int p_97173_, Advancement p_97174_) void
drawContents
(PoseStack p_275262_, int p_275430_, int p_275336_) void
drawIcon
(PoseStack p_275411_, int p_275531_, int p_275264_, ItemRenderer p_275236_) void
void
drawTooltips
(PoseStack p_97184_, int p_97185_, int p_97186_, int p_97187_, int p_97188_) int
getIndex()
int
getPage()
getTitle()
getType()
getWidget
(Advancement p_97181_) boolean
isMouseOver
(int p_97155_, int p_97156_, double p_97157_, double p_97158_) void
scroll
(double p_97152_, double p_97153_) Methods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blit, blitNineSliced, blitNineSliced, blitNineSliced, blitOutlineBlack, blitRepeating, disableScissor, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, enableScissor, fill, fill, fillGradient, fillGradient, fillGradient, hLine, renderOutline, vLine
-
Field Details
-
minecraft
-
screen
-
type
-
index
private final int index -
advancement
-
display
-
icon
-
title
-
root
-
widgets
-
scrollX
private double scrollX -
scrollY
private double scrollY -
minX
private int minX -
minY
private int minY -
maxX
private int maxX -
maxY
private int maxY -
fade
private float fade -
centered
private boolean centered -
page
private int page
-
-
Constructor Details
-
AdvancementTab
public AdvancementTab(Minecraft p_97145_, AdvancementsScreen p_97146_, AdvancementTabType p_97147_, int p_97148_, Advancement p_97149_, DisplayInfo p_97150_) -
AdvancementTab
public AdvancementTab(Minecraft mc, AdvancementsScreen screen, AdvancementTabType type, int index, int page, Advancement adv, DisplayInfo info)
-
-
Method Details
-
getPage
public int getPage() -
getType
-
getIndex
public int getIndex() -
getAdvancement
-
getTitle
-
getDisplay
-
drawTab
-
drawIcon
-
drawContents
-
drawTooltips
public void drawTooltips(PoseStack p_97184_, int p_97185_, int p_97186_, int p_97187_, int p_97188_) -
isMouseOver
public boolean isMouseOver(int p_97155_, int p_97156_, double p_97157_, double p_97158_) -
create
@Nullable public static AdvancementTab create(Minecraft p_97171_, AdvancementsScreen p_97172_, int p_97173_, Advancement p_97174_) -
scroll
public void scroll(double p_97152_, double p_97153_) -
addAdvancement
-
addWidget
-
getWidget
-
getScreen
-