Class AdvancementWidget
java.lang.Object
net.minecraft.client.gui.GuiComponent
net.minecraft.client.gui.screens.advancements.AdvancementWidget
-
Field Summary
Modifier and TypeFieldDescriptionprivate Advancement
private static int
private static int
private List<AdvancementWidget>
private List<FormattedCharSequence>
private DisplayInfo
private static int
private static int
private static int
private static int
private static int
private Minecraft
private AdvancementWidget
private AdvancementProgress
private AdvancementTab
private static int[]
private FormattedCharSequence
private static int
private static int
private static int
private static int
private static int
private static ResourceLocation
private int
private int
private 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, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, fill, fillGradient, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
-
Field Details
-
WIDGETS_LOCATION
-
HEIGHT
private static final int HEIGHT- See Also:
- Constant Field Values
-
BOX_X
private static final int BOX_X- See Also:
- Constant Field Values
-
BOX_WIDTH
private static final int BOX_WIDTH- See Also:
- Constant Field Values
-
FRAME_WIDTH
private static final int FRAME_WIDTH- See Also:
- Constant Field Values
-
ICON_X
private static final int ICON_X- See Also:
- Constant Field Values
-
ICON_Y
private static final int ICON_Y- See Also:
- Constant Field Values
-
ICON_WIDTH
private static final int ICON_WIDTH- See Also:
- Constant Field Values
-
TITLE_PADDING_LEFT
private static final int TITLE_PADDING_LEFT- See Also:
- Constant Field Values
-
TITLE_PADDING_RIGHT
private static final int TITLE_PADDING_RIGHT- See Also:
- Constant Field Values
-
TITLE_X
private static final int TITLE_X- See Also:
- Constant Field Values
-
TITLE_Y
private static final int TITLE_Y- See Also:
- Constant Field Values
-
TITLE_MAX_WIDTH
private static final int TITLE_MAX_WIDTH- See Also:
- Constant Field Values
-
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()
-