Class AdvancementTabGui
- java.lang.Object
-
- net.minecraft.client.gui.AbstractGui
-
- net.minecraft.client.gui.advancements.AdvancementTabGui
-
public class AdvancementTabGui extends AbstractGui
-
-
Field Summary
Fields Modifier and Type Field Description private Advancement
advancement
private boolean
centered
private DisplayInfo
display
private float
fade
private ItemStack
icon
private int
index
private int
maxX
private int
maxY
private Minecraft
minecraft
private int
minX
private int
minY
private int
page
private AdvancementEntryGui
root
private AdvancementsScreen
screen
private double
scrollX
private double
scrollY
private ITextComponent
title
private AdvancementTabType
type
private java.util.Map<Advancement,AdvancementEntryGui>
widgets
-
Fields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
-
-
Constructor Summary
Constructors Constructor Description AdvancementTabGui(Minecraft mc, AdvancementsScreen screen, AdvancementTabType type, int index, int page, Advancement adv, DisplayInfo info)
AdvancementTabGui(Minecraft p_i47589_1_, AdvancementsScreen p_i47589_2_, AdvancementTabType p_i47589_3_, int p_i47589_4_, Advancement p_i47589_5_, DisplayInfo p_i47589_6_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAdvancement(Advancement p_191800_1_)
private void
addWidget(AdvancementEntryGui p_193937_1_, Advancement p_193937_2_)
static AdvancementTabGui
create(Minecraft p_193936_0_, AdvancementsScreen p_193936_1_, int p_193936_2_, Advancement p_193936_3_)
void
drawContents(MatrixStack p_238682_1_)
void
drawIcon(int p_191796_1_, int p_191796_2_, ItemRenderer p_191796_3_)
void
drawTab(MatrixStack p_238683_1_, int p_238683_2_, int p_238683_3_, boolean p_238683_4_)
void
drawTooltips(MatrixStack p_238684_1_, int p_238684_2_, int p_238684_3_, int p_238684_4_, int p_238684_5_)
Advancement
getAdvancement()
int
getPage()
AdvancementsScreen
getScreen()
ITextComponent
getTitle()
AdvancementEntryGui
getWidget(Advancement p_191794_1_)
boolean
isMouseOver(int p_195627_1_, int p_195627_2_, double p_195627_3_, double p_195627_5_)
void
scroll(double p_195626_1_, double p_195626_3_)
-
Methods inherited from class net.minecraft.client.gui.AbstractGui
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
-
-
-
-
Field Detail
-
minecraft
private final Minecraft minecraft
-
screen
private final AdvancementsScreen screen
-
type
private final AdvancementTabType type
-
index
private final int index
-
advancement
private final Advancement advancement
-
display
private final DisplayInfo display
-
icon
private final ItemStack icon
-
title
private final ITextComponent title
-
root
private final AdvancementEntryGui root
-
widgets
private final java.util.Map<Advancement,AdvancementEntryGui> 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 Detail
-
AdvancementTabGui
public AdvancementTabGui(Minecraft p_i47589_1_, AdvancementsScreen p_i47589_2_, AdvancementTabType p_i47589_3_, int p_i47589_4_, Advancement p_i47589_5_, DisplayInfo p_i47589_6_)
-
AdvancementTabGui
public AdvancementTabGui(Minecraft mc, AdvancementsScreen screen, AdvancementTabType type, int index, int page, Advancement adv, DisplayInfo info)
-
-
Method Detail
-
getPage
public int getPage()
-
getAdvancement
public Advancement getAdvancement()
-
getTitle
public ITextComponent getTitle()
-
drawTab
public void drawTab(MatrixStack p_238683_1_, int p_238683_2_, int p_238683_3_, boolean p_238683_4_)
-
drawIcon
public void drawIcon(int p_191796_1_, int p_191796_2_, ItemRenderer p_191796_3_)
-
drawContents
public void drawContents(MatrixStack p_238682_1_)
-
drawTooltips
public void drawTooltips(MatrixStack p_238684_1_, int p_238684_2_, int p_238684_3_, int p_238684_4_, int p_238684_5_)
-
isMouseOver
public boolean isMouseOver(int p_195627_1_, int p_195627_2_, double p_195627_3_, double p_195627_5_)
-
create
@Nullable public static AdvancementTabGui create(Minecraft p_193936_0_, AdvancementsScreen p_193936_1_, int p_193936_2_, Advancement p_193936_3_)
-
scroll
public void scroll(double p_195626_1_, double p_195626_3_)
-
addAdvancement
public void addAdvancement(Advancement p_191800_1_)
-
addWidget
private void addWidget(AdvancementEntryGui p_193937_1_, Advancement p_193937_2_)
-
getWidget
@Nullable public AdvancementEntryGui getWidget(Advancement p_191794_1_)
-
getScreen
public AdvancementsScreen getScreen()
-
-