Class AdvancementTab
java.lang.Object
net.minecraft.client.gui.GuiComponent
net.minecraft.client.gui.screens.advancements.AdvancementTab
-
Field Summary
Modifier and TypeFieldDescriptionprivate Advancement
private boolean
private DisplayInfo
private float
private ItemStack
private int
private int
private int
private Minecraft
private int
private int
private int
private AdvancementWidget
private AdvancementsScreen
private double
private double
private Component
private AdvancementTabType
private Map<Advancement,AdvancementWidget>
Fields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, 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_97164_)
void
drawIcon(int p_97160_, int p_97161_, ItemRenderer p_97162_)
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, blitOutlineBlack, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, fill, fillGradient, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, 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
-