Interface AdvancementDisplay


public interface AdvancementDisplay
Holds information about how the advancement is displayed by the game.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    Gets the visible description of the advancement.
    The icon that is used for this advancement.
    Gets the title of the advancement.
    The display type of this advancement.
    float
    The X position of the advancement in the advancement screen.
    float
    The Y position of the advancement in the advancement screen.
    boolean
    Whether to hide this advancement and all its children from the advancement screen until this advancement have been completed.
    boolean
    Whether to announce in the chat when this advancement has been completed.
    boolean
    Whether to show a toast to the player when this advancement has been completed.
  • Method Details Link icon

    • getTitle Link icon

      @NotNull String getTitle()
      Gets the title of the advancement.
      Returns:
      The advancement title without colour codes.
    • getDescription Link icon

      @NotNull String getDescription()
      Gets the visible description of the advancement.
      Returns:
      The advancement description without colour codes.
    • getIcon Link icon

      @NotNull ItemStack getIcon()
      The icon that is used for this advancement.
      Returns:
      an ItemStack that represents the advancement.
    • shouldShowToast Link icon

      boolean shouldShowToast()
      Whether to show a toast to the player when this advancement has been completed.
      Returns:
      true if a toast is shown.
    • shouldAnnounceChat Link icon

      boolean shouldAnnounceChat()
      Whether to announce in the chat when this advancement has been completed.
      Returns:
      true if announced in chat.
    • isHidden Link icon

      boolean isHidden()
      Whether to hide this advancement and all its children from the advancement screen until this advancement have been completed. Has no effect on root advancements themselves, but still affects all their children.
      Returns:
      true if hidden.
    • getX Link icon

      float getX()
      The X position of the advancement in the advancement screen.
      Returns:
      the X coordinate as float
    • getY Link icon

      float getY()
      The Y position of the advancement in the advancement screen.
      Returns:
      the Y coordinate as float
    • getType Link icon

      @NotNull AdvancementDisplayType getType()
      The display type of this advancement.
      Returns:
      an enum representing the type.