Interface AdvancementRenderContext

All Known Subinterfaces:
AdvancementRenderContext.Background, AdvancementRenderContext.Frame, AdvancementRenderContext.Icon

@NonExtendable public sealed interface AdvancementRenderContext permits AdvancementRenderContext.Icon, AdvancementRenderContext.Frame, AdvancementRenderContext.Background
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
     
    static interface 
     
    static interface 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default net.minecraft.advancements.Advancement
    The advancement being rendered.
    default net.minecraft.advancements.DisplayInfo
    The display info of the advancement.
    net.minecraft.client.gui.GuiGraphics
    The graphics instance used for rendering.
    net.minecraft.advancements.AdvancementHolder
    The holder for the advancement.
    default boolean
     
    @Nullable net.minecraft.advancements.AdvancementProgress
     
  • Method Details

    • graphics

      net.minecraft.client.gui.GuiGraphics graphics()
      The graphics instance used for rendering.
      Returns:
      GuiGraphics instance
    • holder

      net.minecraft.advancements.AdvancementHolder holder()
      The holder for the advancement.
      Returns:
      AdvancementHolder instance
    • progress

      @Nullable net.minecraft.advancements.AdvancementProgress progress()
      Returns:
      The advancement's progress, or null if there is no progress.
    • advancement

      default net.minecraft.advancements.Advancement advancement()
      The advancement being rendered.
      Returns:
      Advancement instance
    • display

      default net.minecraft.advancements.DisplayInfo display()
      The display info of the advancement.
      Returns:
      DisplayInfo instance
    • isObtained

      default boolean isObtained()
      Returns:
      true if the advancement has been obtained.