Class AdvancementWidget
java.lang.Object
net.minecraft.client.gui.GuiComponent
net.minecraft.client.gui.screens.advancements.AdvancementWidget
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Advancement
private static final int
private static final int
private final List<AdvancementWidget>
private final List<FormattedCharSequence>
private final DisplayInfo
private static final int
private static final int
private static final int
private static final int
private static final int
private final Minecraft
private AdvancementWidget
private AdvancementProgress
private final AdvancementTab
private static final int[]
private final FormattedCharSequence
private static final int
private static final int
private static final int
private static final int
private static final int
private static final ResourceLocation
private final int
private final int
private final int
Fields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
-
Constructor Summary
ConstructorDescriptionAdvancementWidget
(AdvancementTab p_97255_, Minecraft p_97256_, Advancement p_97257_, DisplayInfo p_97258_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addChild
(AdvancementWidget p_97307_) void
void
void
drawConnectivity
(PoseStack p_97299_, int p_97300_, int p_97301_, boolean p_97302_) void
drawHover
(PoseStack p_97271_, int p_97272_, int p_97273_, float p_97274_, int p_97275_, int p_97276_) private List<FormattedText>
findOptimalLines
(Component p_97309_, int p_97310_) private AdvancementWidget
getFirstVisibleParent
(Advancement p_97312_) private static float
getMaxWidth
(StringSplitter p_97304_, List<FormattedText> p_97305_) int
getWidth()
int
getX()
int
getY()
boolean
isMouseOver
(int p_97260_, int p_97261_, int p_97262_, int p_97263_) protected void
render9Sprite
(PoseStack p_97288_, int p_97289_, int p_97290_, int p_97291_, int p_97292_, int p_97293_, int p_97294_, int p_97295_, int p_97296_, int p_97297_) protected void
renderRepeating
(PoseStack p_97278_, int p_97279_, int p_97280_, int p_97281_, int p_97282_, int p_97283_, int p_97284_, int p_97285_, int p_97286_) void
setProgress
(AdvancementProgress p_97265_) Methods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blitOutlineBlack, disableScissor, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, enableScissor, fill, fillGradient, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
-
Field Details
-
WIDGETS_LOCATION
-
HEIGHT
private static final int HEIGHT- See Also:
-
BOX_X
private static final int BOX_X- See Also:
-
BOX_WIDTH
private static final int BOX_WIDTH- See Also:
-
FRAME_WIDTH
private static final int FRAME_WIDTH- See Also:
-
ICON_X
private static final int ICON_X- See Also:
-
ICON_Y
private static final int ICON_Y- See Also:
-
ICON_WIDTH
private static final int ICON_WIDTH- See Also:
-
TITLE_PADDING_LEFT
private static final int TITLE_PADDING_LEFT- See Also:
-
TITLE_PADDING_RIGHT
private static final int TITLE_PADDING_RIGHT- See Also:
-
TITLE_X
private static final int TITLE_X- See Also:
-
TITLE_Y
private static final int TITLE_Y- See Also:
-
TITLE_MAX_WIDTH
private static final int TITLE_MAX_WIDTH- See Also:
-
TEST_SPLIT_OFFSETS
private static final int[] TEST_SPLIT_OFFSETS -
tab
-
advancement
-
display
-
title
-
width
private final int width -
description
-
minecraft
-
parent
-
children
-
progress
-
x
private final int x -
y
private final int y
-
-
Constructor Details
-
AdvancementWidget
public AdvancementWidget(AdvancementTab p_97255_, Minecraft p_97256_, Advancement p_97257_, DisplayInfo p_97258_)
-
-
Method Details
-
getMaxWidth
-
findOptimalLines
-
getFirstVisibleParent
-
drawConnectivity
-
draw
-
getWidth
public int getWidth() -
setProgress
-
addChild
-
drawHover
public void drawHover(PoseStack p_97271_, int p_97272_, int p_97273_, float p_97274_, int p_97275_, int p_97276_) -
render9Sprite
protected void render9Sprite(PoseStack p_97288_, int p_97289_, int p_97290_, int p_97291_, int p_97292_, int p_97293_, int p_97294_, int p_97295_, int p_97296_, int p_97297_) -
renderRepeating
protected void renderRepeating(PoseStack p_97278_, int p_97279_, int p_97280_, int p_97281_, int p_97282_, int p_97283_, int p_97284_, int p_97285_, int p_97286_) -
isMouseOver
public boolean isMouseOver(int p_97260_, int p_97261_, int p_97262_, int p_97263_) -
attachToParent
public void attachToParent() -
getY
public int getY() -
getX
public int getX()
-