程序包 org.bukkit.advancement

# 接口 AdvancementDisplay

public interface AdvancementDisplay
Holds information about how the advancement is displayed by the game.

- ## 方法概要

  修饰符和类型
  方法
  说明
  `@NotNull String`
  `getDescription()`
  Gets the visible description of the advancement.
  `@NotNull ItemStack`
  `getIcon()`
  The icon that is used for this advancement.
  `@NotNull String`
  `getTitle()`
  Gets the title of the advancement.
  `@NotNull AdvancementDisplayType`
  `getType()`
  The display type of this advancement.
  `float`
  `getX()`
  The X position of the advancement in the advancement screen.
  `float`
  `getY()`
  The Y position of the advancement in the advancement screen.
  `boolean`
  `isHidden()`
  Whether to hide this advancement and all its children from the advancement screen until this advancement have been completed.
  `boolean`
  `shouldAnnounceChat()`
  Whether to announce in the chat when this advancement has been completed.
  `boolean`
  `shouldShowToast()`
  Whether to show a toast to the player when this advancement has been completed.

- ## 方法详细资料

  - ### getTitle

    @NotNull @NotNull String getTitle()
    Gets the title of the advancement.
    返回:
      The advancement title without colour codes.

  - ### getDescription

    @NotNull @NotNull String getDescription()
    Gets the visible description of the advancement.
    返回:
      The advancement description without colour codes.

  - ### getIcon

    @NotNull @NotNull ItemStack getIcon()
    The icon that is used for this advancement.
    返回:
      an ItemStack that represents the advancement.

  - ### shouldShowToast

    boolean shouldShowToast()
    Whether to show a toast to the player when this advancement has been completed.
    返回:
      true if a toast is shown.

  - ### shouldAnnounceChat

    boolean shouldAnnounceChat()
    Whether to announce in the chat when this advancement has been completed.
    返回:
      true if announced in chat.

  - ### isHidden

    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.
    返回:
      true if hidden.

  - ### getX

    float getX()
    The X position of the advancement in the advancement screen.
    返回:
      the X coordinate as float

  - ### getY

    float getY()
    The Y position of the advancement in the advancement screen.
    返回:
      the Y coordinate as float

  - ### getType

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