接口 AdvancementDisplay


public interface AdvancementDisplay
保存游戏如何显示此进度的信息.

原文: Holds information about how the advancement is displayed by the game.

  • 方法详细资料

    • getTitle

      获取此进度的标题.

      原文: Gets the title of the advancement.

      返回:
      不含颜色代码的进度标题
    • getDescription

      @NotNull @NotNull String getDescription()
      获取此进度的可见描述.

      原文: Gets the visible description of the advancement.

      返回:
      不含颜色代码的进度描述
    • getIcon

      用于此进度的图标.

      原文: The icon that is used for this advancement.

      返回:
      代表此进度的ItemStack
    • shouldShowToast

      boolean shouldShowToast()
      当此进度完成时是否向玩家显示一个提示.

      原文: Whether to show a toast to the player when this advancement has been completed.

      返回:
      如果显示提示则返回true
    • shouldAnnounceChat

      boolean shouldAnnounceChat()
      当此进度完成时是否在聊天中公告.

      原文: Whether to announce in the chat when this advancement has been completed.

      返回:
      如果在聊天中公告则返回true
    • 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
    • getX

      float getX()
      此进度在进度界面中的X位置.

      原文: The X position of the advancement in the advancement screen.

      返回:
      X坐标, 浮点数形式
    • getY

      float getY()
      此进度在进度界面中的Y位置.

      原文: The Y position of the advancement in the advancement screen.

      返回:
      Y坐标, 浮点数形式
    • getType

      此进度的显示类型.

      原文: The display type of this advancement.

      返回:
      表示类型的枚举