Interface DisplayInfo


public interface DisplayInfo
  • Method Details Link icon

    • builder Link icon

      static DisplayInfo.Builder builder()
      Creates a new DisplayInfo.Builder to create DisplayInfos.
      Returns:
      The new builder
    • type Link icon

      Gets the AdvancementType.
      Returns:
      The advancement type
    • description Link icon

      Component description()
      Gets the description.
      Returns:
      The description
    • icon Link icon

      Gets the icon.
      Returns:
      The icon
    • title Link icon

      Component title()
      Gets the title.
      Returns:
      The title
    • doesShowToast Link icon

      boolean doesShowToast()
      Gets whether a toast should be shown.

      The toast is the notification that will be displayed in the top right corner.

      Returns:
      Show toast
    • doesAnnounceToChat Link icon

      boolean doesAnnounceToChat()
      Gets whether a notification should be shown in the global chat.
      Returns:
      Announce to chat
    • isHidden Link icon

      boolean isHidden()
      Gets whether this advancement is hidden.

      Hidden advancements will only appear in the tree once they are unlocked. The lines that connect them to other advancements are still present.

      Returns:
      Is hidden