Class AdvancementWidget

java.lang.Object
net.minecraft.client.gui.GuiComponent
net.minecraft.client.gui.screens.advancements.AdvancementWidget

public class AdvancementWidget extends GuiComponent
  • Field Details

  • Constructor Details

  • Method Details

    • getMaxWidth

      private static float getMaxWidth(StringSplitter p_97304_, List<FormattedText> p_97305_)
    • findOptimalLines

      private List<FormattedText> findOptimalLines(Component p_97309_, int p_97310_)
    • getFirstVisibleParent

      @Nullable private AdvancementWidget getFirstVisibleParent(Advancement p_97312_)
    • drawConnectivity

      public void drawConnectivity(PoseStack p_97299_, int p_97300_, int p_97301_, boolean p_97302_)
    • draw

      public void draw(PoseStack p_97267_, int p_97268_, int p_97269_)
    • getWidth

      public int getWidth()
    • setProgress

      public void setProgress(AdvancementProgress p_97265_)
    • addChild

      public void addChild(AdvancementWidget p_97307_)
    • 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()