Class AdvancementWidget
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.screen.advancement.AdvancementWidget
- Mappings:
Namespace Name official etq
intermediary net/minecraft/class_456
named net/minecraft/client/gui/screen/advancement/AdvancementWidget
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Advancement
private final List<AdvancementWidget>
private final MinecraftClient
private final List<OrderedText>
private final AdvancementDisplay
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private @Nullable AdvancementWidget
private @Nullable AdvancementProgress
private static final int[]
private final AdvancementTab
private final OrderedText
private static final int
private static final int
private static final int
private static final Identifier
private final int
private final int
private final int
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, LIGHT_DIRT_BACKGROUND_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
Constructor Summary
ConstructorDescriptionAdvancementWidget
(AdvancementTab tab, MinecraftClient client, Advancement advancement, AdvancementDisplay display) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addChild
(AdvancementWidget widget) void
void
drawTooltip
(MatrixStack matrices, int originX, int originY, float alpha, int x, int y) private static float
getMaxWidth
(TextHandler textHandler, List<StringVisitable> lines) private @Nullable AdvancementWidget
getParent
(Advancement advancement) int
getWidth()
int
getX()
int
getY()
void
renderLines
(MatrixStack matrices, int x, int y, boolean border) void
renderWidgets
(MatrixStack matrices, int x, int y) void
setProgress
(AdvancementProgress progress) boolean
shouldRender
(int originX, int originY, int mouseX, int mouseY) private List<StringVisitable>
wrapDescription
(Text text, int width) Methods inherited from class net.minecraft.client.gui.DrawableHelper
disableScissor, drawBorder, drawCenteredTextWithShadow, drawCenteredTextWithShadow, drawCenteredTextWithShadow, drawHorizontalLine, drawNineSlicedTexture, drawNineSlicedTexture, drawNineSlicedTexture, drawRepeatingTexture, drawSprite, drawSprite, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawTextWithShadow, drawTextWithShadow, drawVerticalLine, drawWithOutline, enableScissor, fill, fill, fillGradient, fillGradient, fillGradient
-
Field Details
-
WIDGETS_TEXTURE
- Mappings:
Namespace Name Mixin selector official a
Letq;a:Ladd;
intermediary field_2709
Lnet/minecraft/class_456;field_2709:Lnet/minecraft/class_2960;
named WIDGETS_TEXTURE
Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;WIDGETS_TEXTURE:Lnet/minecraft/util/Identifier;
-
field_32286
private static final int field_32286- See Also:
- Mappings:
Namespace Name Mixin selector official b
Letq;b:I
intermediary field_32286
Lnet/minecraft/class_456;field_32286:I
named field_32286
Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;field_32286:I
-
field_32287
private static final int field_32287- See Also:
- Mappings:
Namespace Name Mixin selector official c
Letq;c:I
intermediary field_32287
Lnet/minecraft/class_456;field_32287:I
named field_32287
Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;field_32287:I
-
field_32288
private static final int field_32288- See Also:
- Mappings:
Namespace Name Mixin selector official d
Letq;d:I
intermediary field_32288
Lnet/minecraft/class_456;field_32288:I
named field_32288
Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;field_32288:I
-
field_32289
private static final int field_32289- See Also:
- Mappings:
Namespace Name Mixin selector official e
Letq;e:I
intermediary field_32289
Lnet/minecraft/class_456;field_32289:I
named field_32289
Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;field_32289:I
-
ICON_OFFSET_X
private static final int ICON_OFFSET_X- See Also:
- Mappings:
Namespace Name Mixin selector official f
Letq;f:I
intermediary field_32290
Lnet/minecraft/class_456;field_32290:I
named ICON_OFFSET_X
Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;ICON_OFFSET_X:I
-
ICON_OFFSET_Y
private static final int ICON_OFFSET_Y- See Also:
- Mappings:
Namespace Name Mixin selector official k
Letq;k:I
intermediary field_32291
Lnet/minecraft/class_456;field_32291:I
named ICON_OFFSET_Y
Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;ICON_OFFSET_Y:I
-
ICON_SIZE
private static final int ICON_SIZE- See Also:
- Mappings:
Namespace Name Mixin selector official l
Letq;l:I
intermediary field_32292
Lnet/minecraft/class_456;field_32292:I
named ICON_SIZE
Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;ICON_SIZE:I
-
field_32293
private static final int field_32293- See Also:
- Mappings:
Namespace Name Mixin selector official m
Letq;m:I
intermediary field_32293
Lnet/minecraft/class_456;field_32293:I
named field_32293
Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;field_32293:I
-
field_32294
private static final int field_32294- See Also:
- Mappings:
Namespace Name Mixin selector official n
Letq;n:I
intermediary field_32294
Lnet/minecraft/class_456;field_32294:I
named field_32294
Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;field_32294:I
-
TITLE_OFFSET_X
private static final int TITLE_OFFSET_X- See Also:
- Mappings:
Namespace Name Mixin selector official o
Letq;o:I
intermediary field_32295
Lnet/minecraft/class_456;field_32295:I
named TITLE_OFFSET_X
Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;TITLE_OFFSET_X:I
-
TITLE_OFFSET_Y
private static final int TITLE_OFFSET_Y- See Also:
- Mappings:
Namespace Name Mixin selector official p
Letq;p:I
intermediary field_32296
Lnet/minecraft/class_456;field_32296:I
named TITLE_OFFSET_Y
Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;TITLE_OFFSET_Y:I
-
TITLE_MAX_WIDTH
private static final int TITLE_MAX_WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector official q
Letq;q:I
intermediary field_32297
Lnet/minecraft/class_456;field_32297:I
named TITLE_MAX_WIDTH
Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;TITLE_MAX_WIDTH:I
-
SPLIT_OFFSET_CANDIDATES
private static final int[] SPLIT_OFFSET_CANDIDATES- Mappings:
Namespace Name Mixin selector official r
Letq;r:[I
intermediary field_24262
Lnet/minecraft/class_456;field_24262:[I
named SPLIT_OFFSET_CANDIDATES
Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;SPLIT_OFFSET_CANDIDATES:[I
-
tab
- Mappings:
Namespace Name Mixin selector official s
Letq;s:Leto;
intermediary field_2703
Lnet/minecraft/class_456;field_2703:Lnet/minecraft/class_454;
named tab
Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;tab:Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;
-
advancement
- Mappings:
Namespace Name Mixin selector official t
Letq;t:Lae;
intermediary field_2702
Lnet/minecraft/class_456;field_2702:Lnet/minecraft/class_161;
named advancement
Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;advancement:Lnet/minecraft/advancement/Advancement;
-
display
- Mappings:
Namespace Name Mixin selector official u
Letq;u:Lan;
intermediary field_2712
Lnet/minecraft/class_456;field_2712:Lnet/minecraft/class_185;
named display
Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;display:Lnet/minecraft/advancement/AdvancementDisplay;
-
title
- Mappings:
Namespace Name Mixin selector official v
Letq;v:Laov;
intermediary field_2713
Lnet/minecraft/class_456;field_2713:Lnet/minecraft/class_5481;
named title
Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;title:Lnet/minecraft/text/OrderedText;
-
width
private final int width- Mappings:
Namespace Name Mixin selector official w
Letq;w:I
intermediary field_2715
Lnet/minecraft/class_456;field_2715:I
named width
Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;width:I
-
description
- Mappings:
Namespace Name Mixin selector official x
Letq;x:Ljava/util/List;
intermediary field_2705
Lnet/minecraft/class_456;field_2705:Ljava/util/List;
named description
Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;description:Ljava/util/List;
-
client
- Mappings:
Namespace Name Mixin selector official y
Letq;y:Lemh;
intermediary field_2704
Lnet/minecraft/class_456;field_2704:Lnet/minecraft/class_310;
named client
Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;client:Lnet/minecraft/client/MinecraftClient;
-
parent
- Mappings:
Namespace Name Mixin selector official z
Letq;z:Letq;
intermediary field_2706
Lnet/minecraft/class_456;field_2706:Lnet/minecraft/class_456;
named parent
Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;parent:Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;
-
children
- Mappings:
Namespace Name Mixin selector official A
Letq;A:Ljava/util/List;
intermediary field_2707
Lnet/minecraft/class_456;field_2707:Ljava/util/List;
named children
Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;children:Ljava/util/List;
-
progress
- Mappings:
Namespace Name Mixin selector official B
Letq;B:Lag;
intermediary field_2714
Lnet/minecraft/class_456;field_2714:Lnet/minecraft/class_167;
named progress
Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;progress:Lnet/minecraft/advancement/AdvancementProgress;
-
x
private final int x- Mappings:
Namespace Name Mixin selector official C
Letq;C:I
intermediary field_2711
Lnet/minecraft/class_456;field_2711:I
named x
Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;x:I
-
y
private final int y- Mappings:
Namespace Name Mixin selector official D
Letq;D:I
intermediary field_2710
Lnet/minecraft/class_456;field_2710:I
named y
Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;y:I
-
-
Constructor Details
-
AdvancementWidget
public AdvancementWidget(AdvancementTab tab, MinecraftClient client, Advancement advancement, AdvancementDisplay display) - Mappings:
Namespace Name Mixin selector official <init>
Letq;<init>(Leto;Lemh;Lae;Lan;)V
intermediary <init>
Lnet/minecraft/class_456;<init>(Lnet/minecraft/class_454;Lnet/minecraft/class_310;Lnet/minecraft/class_161;Lnet/minecraft/class_185;)V
named <init>
Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;<init>(Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/advancement/Advancement;Lnet/minecraft/advancement/AdvancementDisplay;)V
-
-
Method Details
-
getMaxWidth
- Mappings:
Namespace Name Mixin selector official a
Letq;a(Lemt;Ljava/util/List;)F
intermediary method_27572
Lnet/minecraft/class_456;method_27572(Lnet/minecraft/class_5225;Ljava/util/List;)F
named getMaxWidth
Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;getMaxWidth(Lnet/minecraft/client/font/TextHandler;Ljava/util/List;)F
-
wrapDescription
- Mappings:
Namespace Name Mixin selector official a
Letq;a(Ltj;I)Ljava/util/List;
intermediary method_2330
Lnet/minecraft/class_456;method_2330(Lnet/minecraft/class_2561;I)Ljava/util/List;
named wrapDescription
Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;wrapDescription(Lnet/minecraft/text/Text;I)Ljava/util/List;
-
getParent
- Mappings:
Namespace Name Mixin selector official a
Letq;a(Lae;)Letq;
intermediary method_2328
Lnet/minecraft/class_456;method_2328(Lnet/minecraft/class_161;)Lnet/minecraft/class_456;
named getParent
Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;getParent(Lnet/minecraft/advancement/Advancement;)Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;
-
renderLines
- Mappings:
Namespace Name Mixin selector official a
Letq;a(Lehe;IIZ)V
intermediary method_2323
Lnet/minecraft/class_456;method_2323(Lnet/minecraft/class_4587;IIZ)V
named renderLines
Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;renderLines(Lnet/minecraft/client/util/math/MatrixStack;IIZ)V
-
renderWidgets
- Mappings:
Namespace Name Mixin selector official a
Letq;a(Lehe;II)V
intermediary method_2325
Lnet/minecraft/class_456;method_2325(Lnet/minecraft/class_4587;II)V
named renderWidgets
Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;renderWidgets(Lnet/minecraft/client/util/math/MatrixStack;II)V
-
getWidth
public int getWidth()- Mappings:
Namespace Name Mixin selector official a
Letq;a()I
intermediary method_35737
Lnet/minecraft/class_456;method_35737()I
named getWidth
Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;getWidth()I
-
setProgress
- Mappings:
Namespace Name Mixin selector official a
Letq;a(Lag;)V
intermediary method_2333
Lnet/minecraft/class_456;method_2333(Lnet/minecraft/class_167;)V
named setProgress
Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;setProgress(Lnet/minecraft/advancement/AdvancementProgress;)V
-
addChild
- Mappings:
Namespace Name Mixin selector official a
Letq;a(Letq;)V
intermediary method_2322
Lnet/minecraft/class_456;method_2322(Lnet/minecraft/class_456;)V
named addChild
Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;addChild(Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;)V
-
drawTooltip
- Mappings:
Namespace Name Mixin selector official a
Letq;a(Lehe;IIFII)V
intermediary method_2331
Lnet/minecraft/class_456;method_2331(Lnet/minecraft/class_4587;IIFII)V
named drawTooltip
Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;drawTooltip(Lnet/minecraft/client/util/math/MatrixStack;IIFII)V
-
shouldRender
public boolean shouldRender(int originX, int originY, int mouseX, int mouseY) - Mappings:
Namespace Name Mixin selector official b
Letq;b(IIII)Z
intermediary method_2329
Lnet/minecraft/class_456;method_2329(IIII)Z
named shouldRender
Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;shouldRender(IIII)Z
-
addToTree
public void addToTree()- Mappings:
Namespace Name Mixin selector official b
Letq;b()V
intermediary method_2332
Lnet/minecraft/class_456;method_2332()V
named addToTree
Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;addToTree()V
-
getY
public int getY()- Mappings:
Namespace Name Mixin selector official c
Letq;c()I
intermediary method_2326
Lnet/minecraft/class_456;method_2326()I
named getY
Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;getY()I
-
getX
public int getX()- Mappings:
Namespace Name Mixin selector official d
Letq;d()I
intermediary method_2327
Lnet/minecraft/class_456;method_2327()I
named getX
Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;getX()I
-