Class AdvancementTab
java.lang.Object
net.minecraft.client.gui.screens.advancements.AdvancementTab
-
Field Summary
Modifier and TypeFieldDescriptionprivate 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 AdvancementNode
private final AdvancementsScreen
private double
private double
private final Component
private final AdvancementTabType
private final Map
<AdvancementHolder, AdvancementWidget> -
Constructor Summary
ConstructorDescriptionAdvancementTab
(Minecraft mc, AdvancementsScreen screen, AdvancementTabType type, int index, int page, AdvancementNode adv, DisplayInfo info) AdvancementTab
(Minecraft p_97145_, AdvancementsScreen p_97146_, AdvancementTabType p_97147_, int p_97148_, AdvancementNode p_297568_, DisplayInfo p_97150_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAdvancement
(AdvancementNode p_297831_) private void
addWidget
(AdvancementWidget p_97176_, AdvancementHolder p_298201_) static AdvancementTab
create
(Minecraft p_97171_, AdvancementsScreen p_97172_, int p_97173_, AdvancementNode p_299876_) void
drawContents
(GuiGraphics p_282728_, int p_282962_, int p_281511_) void
drawIcon
(GuiGraphics p_282895_, int p_283419_, int p_283293_) void
drawTab
(GuiGraphics p_282671_, int p_282721_, int p_282964_, boolean p_283052_) void
drawTooltips
(GuiGraphics p_282892_, int p_283658_, int p_282602_, int p_282652_, int p_283595_) int
getIndex()
int
getPage()
getTitle()
getType()
getWidget
(AdvancementHolder p_300472_) boolean
isMouseOver
(int p_97155_, int p_97156_, double p_97157_, double p_97158_) void
scroll
(double p_97152_, double p_97153_)
-
Field Details
-
minecraft
-
screen
-
type
-
index
private final int index -
rootNode
-
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_, AdvancementNode p_297568_, DisplayInfo p_97150_) -
AdvancementTab
public AdvancementTab(Minecraft mc, AdvancementsScreen screen, AdvancementTabType type, int index, int page, AdvancementNode adv, DisplayInfo info)
-
-
Method Details
-
getPage
public int getPage() -
getType
-
getIndex
public int getIndex() -
getRootNode
-
getTitle
-
getDisplay
-
drawTab
-
drawIcon
-
drawContents
-
drawTooltips
public void drawTooltips(GuiGraphics p_282892_, int p_283658_, int p_282602_, int p_282652_, int p_283595_) -
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_, AdvancementNode p_299876_) -
scroll
public void scroll(double p_97152_, double p_97153_) -
addAdvancement
-
addWidget
-
getWidget
-
getScreen
-