Class AdvancementWidget
java.lang.Object
net.minecraft.client.gui.screens.advancements.AdvancementWidget
-
Field Summary
Modifier and TypeFieldDescriptionprivate final AdvancementNode
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 ResourceLocation
private static final int
private static final int
private static final int
private static final int
private static final int
private final int
private final int
private final int
-
Constructor Summary
ConstructorDescriptionAdvancementWidget
(AdvancementTab p_97255_, Minecraft p_97256_, AdvancementNode p_300868_, DisplayInfo p_97258_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addChild
(AdvancementWidget p_97307_) void
void
draw
(GuiGraphics p_281958_, int p_281323_, int p_283679_) void
drawConnectivity
(GuiGraphics p_281947_, int p_97300_, int p_97301_, boolean p_97302_) void
drawHover
(GuiGraphics p_283068_, int p_281304_, int p_281253_, float p_281848_, int p_282097_, int p_281537_) private List
<FormattedText> findOptimalLines
(Component p_97309_, int p_97310_) private AdvancementWidget
getFirstVisibleParent
(AdvancementNode p_301093_) 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_) void
setProgress
(AdvancementProgress p_97265_)
-
Field Details
-
TITLE_BOX_SPRITE
-
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
-
advancementNode
-
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_, AdvancementNode p_300868_, DisplayInfo p_97258_)
-
-
Method Details
-
getMaxWidth
-
findOptimalLines
-
getFirstVisibleParent
-
drawConnectivity
-
draw
-
getWidth
public int getWidth() -
setProgress
-
addChild
-
drawHover
public void drawHover(GuiGraphics p_283068_, int p_281304_, int p_281253_, float p_281848_, int p_282097_, int p_281537_) -
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()
-