Class AdvancementWidget

java.lang.Object
net.minecraft.client.gui.screen.advancement.AdvancementWidget

@Environment(CLIENT) public class AdvancementWidget extends Object
Mappings:
Namespace Name
named net/minecraft/client/gui/screen/advancement/AdvancementWidget
intermediary net/minecraft/class_456
official fuf
  • Field Details

    • TITLE_BOX_TEXTURE

      private static final Identifier TITLE_BOX_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      named TITLE_BOX_TEXTURE Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;TITLE_BOX_TEXTURE:Lnet/minecraft/util/Identifier;
      intermediary field_45425 Lnet/minecraft/class_456;field_45425:Lnet/minecraft/class_2960;
      official a Lfuf;a:Lalz;
    • field_32286

      private static final int field_32286
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_32286 Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;field_32286:I
      intermediary field_32286 Lnet/minecraft/class_456;field_32286:I
      official b Lfuf;b:I
    • field_32287

      private static final int field_32287
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_32287 Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;field_32287:I
      intermediary field_32287 Lnet/minecraft/class_456;field_32287:I
      official c Lfuf;c:I
    • field_32288

      private static final int field_32288
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_32288 Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;field_32288:I
      intermediary field_32288 Lnet/minecraft/class_456;field_32288:I
      official d Lfuf;d:I
    • field_32289

      private static final int field_32289
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_32289 Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;field_32289:I
      intermediary field_32289 Lnet/minecraft/class_456;field_32289:I
      official e Lfuf;e:I
    • ICON_OFFSET_X

      private static final int ICON_OFFSET_X
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ICON_OFFSET_X Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;ICON_OFFSET_X:I
      intermediary field_32290 Lnet/minecraft/class_456;field_32290:I
      official f Lfuf;f:I
    • ICON_OFFSET_Y

      private static final int ICON_OFFSET_Y
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ICON_OFFSET_Y Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;ICON_OFFSET_Y:I
      intermediary field_32291 Lnet/minecraft/class_456;field_32291:I
      official g Lfuf;g:I
    • ICON_SIZE

      private static final int ICON_SIZE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ICON_SIZE Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;ICON_SIZE:I
      intermediary field_32292 Lnet/minecraft/class_456;field_32292:I
      official h Lfuf;h:I
    • field_32293

      private static final int field_32293
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_32293 Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;field_32293:I
      intermediary field_32293 Lnet/minecraft/class_456;field_32293:I
      official i Lfuf;i:I
    • field_32294

      private static final int field_32294
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_32294 Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;field_32294:I
      intermediary field_32294 Lnet/minecraft/class_456;field_32294:I
      official j Lfuf;j:I
    • TITLE_OFFSET_X

      private static final int TITLE_OFFSET_X
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named TITLE_OFFSET_X Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;TITLE_OFFSET_X:I
      intermediary field_32295 Lnet/minecraft/class_456;field_32295:I
      official k Lfuf;k:I
    • TITLE_OFFSET_Y

      private static final int TITLE_OFFSET_Y
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named TITLE_OFFSET_Y Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;TITLE_OFFSET_Y:I
      intermediary field_32296 Lnet/minecraft/class_456;field_32296:I
      official l Lfuf;l:I
    • TITLE_MAX_WIDTH

      private static final int TITLE_MAX_WIDTH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named TITLE_MAX_WIDTH Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;TITLE_MAX_WIDTH:I
      intermediary field_32297 Lnet/minecraft/class_456;field_32297:I
      official m Lfuf;m:I
    • SPLIT_OFFSET_CANDIDATES

      private static final int[] SPLIT_OFFSET_CANDIDATES
      Mappings:
      Namespace Name Mixin selector
      named SPLIT_OFFSET_CANDIDATES Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;SPLIT_OFFSET_CANDIDATES:[I
      intermediary field_24262 Lnet/minecraft/class_456;field_24262:[I
      official n Lfuf;n:[I
    • tab

      private final AdvancementTab tab
      Mappings:
      Namespace Name Mixin selector
      named tab Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;tab:Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;
      intermediary field_2703 Lnet/minecraft/class_456;field_2703:Lnet/minecraft/class_454;
      official o Lfuf;o:Lfud;
    • advancement

      private final PlacedAdvancement advancement
      Mappings:
      Namespace Name Mixin selector
      named advancement Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;advancement:Lnet/minecraft/advancement/PlacedAdvancement;
      intermediary field_46143 Lnet/minecraft/class_456;field_46143:Lnet/minecraft/class_8781;
      official p Lfuf;p:Lai;
    • display

      private final AdvancementDisplay display
      Mappings:
      Namespace Name Mixin selector
      named display Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;display:Lnet/minecraft/advancement/AdvancementDisplay;
      intermediary field_2712 Lnet/minecraft/class_456;field_2712:Lnet/minecraft/class_185;
      official q Lfuf;q:Lat;
    • title

      private final OrderedText title
      Mappings:
      Namespace Name Mixin selector
      named title Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;title:Lnet/minecraft/text/OrderedText;
      intermediary field_2713 Lnet/minecraft/class_456;field_2713:Lnet/minecraft/class_5481;
      official r Lfuf;r:Lazq;
    • width

      private final int width
      Mappings:
      Namespace Name Mixin selector
      named width Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;width:I
      intermediary field_2715 Lnet/minecraft/class_456;field_2715:I
      official s Lfuf;s:I
    • description

      private final List<OrderedText> description
      Mappings:
      Namespace Name Mixin selector
      named description Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;description:Ljava/util/List;
      intermediary field_2705 Lnet/minecraft/class_456;field_2705:Ljava/util/List;
      official t Lfuf;t:Ljava/util/List;
    • client

      private final MinecraftClient client
      Mappings:
      Namespace Name Mixin selector
      named client Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;client:Lnet/minecraft/client/MinecraftClient;
      intermediary field_2704 Lnet/minecraft/class_456;field_2704:Lnet/minecraft/class_310;
      official u Lfuf;u:Lfmf;
    • parent

      Mappings:
      Namespace Name Mixin selector
      named parent Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;parent:Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;
      intermediary field_2706 Lnet/minecraft/class_456;field_2706:Lnet/minecraft/class_456;
      official v Lfuf;v:Lfuf;
    • children

      private final List<AdvancementWidget> children
      Mappings:
      Namespace Name Mixin selector
      named children Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;children:Ljava/util/List;
      intermediary field_2707 Lnet/minecraft/class_456;field_2707:Ljava/util/List;
      official w Lfuf;w:Ljava/util/List;
    • progress

      Mappings:
      Namespace Name Mixin selector
      named progress Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;progress:Lnet/minecraft/advancement/AdvancementProgress;
      intermediary field_2714 Lnet/minecraft/class_456;field_2714:Lnet/minecraft/class_167;
      official x Lfuf;x:Laj;
    • x

      private final int x
      Mappings:
      Namespace Name Mixin selector
      named x Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;x:I
      intermediary field_2711 Lnet/minecraft/class_456;field_2711:I
      official y Lfuf;y:I
    • y

      private final int y
      Mappings:
      Namespace Name Mixin selector
      named y Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;y:I
      intermediary field_2710 Lnet/minecraft/class_456;field_2710:I
      official z Lfuf;z:I
  • Constructor Details

    • AdvancementWidget

      public AdvancementWidget(AdvancementTab tab, MinecraftClient client, PlacedAdvancement advancement, AdvancementDisplay display)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;<init>(Lnet/minecraft/client/gui/screen/advancement/AdvancementTab;Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/advancement/PlacedAdvancement;Lnet/minecraft/advancement/AdvancementDisplay;)V
      intermediary <init> Lnet/minecraft/class_456;<init>(Lnet/minecraft/class_454;Lnet/minecraft/class_310;Lnet/minecraft/class_8781;Lnet/minecraft/class_185;)V
      official <init> Lfuf;<init>(Lfud;Lfmf;Lai;Lat;)V
  • Method Details

    • getProgressWidth

      private int getProgressWidth()
      Mappings:
      Namespace Name Mixin selector
      named getProgressWidth Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;getProgressWidth()I
      intermediary method_61041 Lnet/minecraft/class_456;method_61041()I
      official e Lfuf;e()I
    • getMaxWidth

      private static float getMaxWidth(TextHandler textHandler, List<StringVisitable> lines)
      Mappings:
      Namespace Name Mixin selector
      named getMaxWidth Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;getMaxWidth(Lnet/minecraft/client/font/TextHandler;Ljava/util/List;)F
      intermediary method_27572 Lnet/minecraft/class_456;method_27572(Lnet/minecraft/class_5225;Ljava/util/List;)F
      official a Lfuf;a(Lfmp;Ljava/util/List;)F
    • wrapDescription

      private List<StringVisitable> wrapDescription(Text text, int width)
      Mappings:
      Namespace Name Mixin selector
      named wrapDescription Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;wrapDescription(Lnet/minecraft/text/Text;I)Ljava/util/List;
      intermediary method_2330 Lnet/minecraft/class_456;method_2330(Lnet/minecraft/class_2561;I)Ljava/util/List;
      official a Lfuf;a(Lxv;I)Ljava/util/List;
    • getParent

      @Nullable private @Nullable AdvancementWidget getParent(PlacedAdvancement advancement)
      Mappings:
      Namespace Name Mixin selector
      named getParent Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;getParent(Lnet/minecraft/advancement/PlacedAdvancement;)Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;
      intermediary method_2328 Lnet/minecraft/class_456;method_2328(Lnet/minecraft/class_8781;)Lnet/minecraft/class_456;
      official a Lfuf;a(Lai;)Lfuf;
    • renderLines

      public void renderLines(DrawContext context, int x, int y, boolean border)
      Mappings:
      Namespace Name Mixin selector
      named renderLines Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;renderLines(Lnet/minecraft/client/gui/DrawContext;IIZ)V
      intermediary method_2323 Lnet/minecraft/class_456;method_2323(Lnet/minecraft/class_332;IIZ)V
      official a Lfuf;a(Lfnr;IIZ)V
    • renderWidgets

      public void renderWidgets(DrawContext context, int x, int y)
      Mappings:
      Namespace Name Mixin selector
      named renderWidgets Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;renderWidgets(Lnet/minecraft/client/gui/DrawContext;II)V
      intermediary method_2325 Lnet/minecraft/class_456;method_2325(Lnet/minecraft/class_332;II)V
      official a Lfuf;a(Lfnr;II)V
    • getWidth

      public int getWidth()
      Mappings:
      Namespace Name Mixin selector
      named getWidth Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;getWidth()I
      intermediary method_35737 Lnet/minecraft/class_456;method_35737()I
      official a Lfuf;a()I
    • setProgress

      public void setProgress(AdvancementProgress progress)
      Mappings:
      Namespace Name Mixin selector
      named setProgress Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;setProgress(Lnet/minecraft/advancement/AdvancementProgress;)V
      intermediary method_2333 Lnet/minecraft/class_456;method_2333(Lnet/minecraft/class_167;)V
      official a Lfuf;a(Laj;)V
    • addChild

      public void addChild(AdvancementWidget widget)
      Mappings:
      Namespace Name Mixin selector
      named addChild Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;addChild(Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;)V
      intermediary method_2322 Lnet/minecraft/class_456;method_2322(Lnet/minecraft/class_456;)V
      official a Lfuf;a(Lfuf;)V
    • drawTooltip

      public void drawTooltip(DrawContext context, int originX, int originY, float alpha, int x, int y)
      Mappings:
      Namespace Name Mixin selector
      named drawTooltip Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;drawTooltip(Lnet/minecraft/client/gui/DrawContext;IIFII)V
      intermediary method_2331 Lnet/minecraft/class_456;method_2331(Lnet/minecraft/class_332;IIFII)V
      official a Lfuf;a(Lfnr;IIFII)V
    • shouldRender

      public boolean shouldRender(int originX, int originY, int mouseX, int mouseY)
      Mappings:
      Namespace Name Mixin selector
      named shouldRender Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;shouldRender(IIII)Z
      intermediary method_2329 Lnet/minecraft/class_456;method_2329(IIII)Z
      official a Lfuf;a(IIII)Z
    • addToTree

      public void addToTree()
      Mappings:
      Namespace Name Mixin selector
      named addToTree Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;addToTree()V
      intermediary method_2332 Lnet/minecraft/class_456;method_2332()V
      official b Lfuf;b()V
    • getY

      public int getY()
      Mappings:
      Namespace Name Mixin selector
      named getY Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;getY()I
      intermediary method_2326 Lnet/minecraft/class_456;method_2326()I
      official c Lfuf;c()I
    • getX

      public int getX()
      Mappings:
      Namespace Name Mixin selector
      named getX Lnet/minecraft/client/gui/screen/advancement/AdvancementWidget;getX()I
      intermediary method_2327 Lnet/minecraft/class_456;method_2327()I
      official d Lfuf;d()I