Class AdvancementTab
java.lang.Object
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> -
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
(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
(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_)
-
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(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_, Advancement p_97174_) -
scroll
public void scroll(double p_97152_, double p_97153_) -
addAdvancement
-
addWidget
-
getWidget
-
getScreen
-