接口 AdvancementProgress


public interface AdvancementProgress
玩家达成一个进度的状态. 这个类不是指针安全的, 因为底层的进度可能会被重载.
  • 方法详细资料

    • getAdvancement

      @NotNull @NotNull Advancement getAdvancement()
      返回此进度对象所关联的进度.

      原文: The advancement this progress is concerning.

      返回:
      相应的进度
    • isDone

      boolean isDone()
      检查是否已满足此进度的所有条件 (即是否完成了此进度).

      原文: Check if all criteria for this advancement have been met.

      返回:
      是否已达成此进度
    • awardCriteria

      boolean awardCriteria(@NotNull @NotNull String criteria)
      在当前时间标记指定的条件为已完成.

      原文: Mark the specified criteria as awarded at the current time.

      参数:
      criteria - 要标记的条件
      返回:
      如果操作成功返回true, 如果条件不存在或已完成返回false
    • revokeCriteria

      boolean revokeCriteria(@NotNull @NotNull String criteria)
      标记指定的条件为未完成.

      原文: Mark the specified criteria as uncompleted.

      参数:
      criteria - 要标记的条件
      返回:
      如果成功移除条件返回true, 如果条件不存在或未完成返回false
    • getDateAwarded

      @Nullable @Nullable Date getDateAwarded(@NotNull @NotNull String criteria)
      获取指定条件被授予的日期.

      原文: Get the date the specified criteria was awarded.

      参数:
      criteria - 要检查的条件
      返回:
      条件被授予的时间, 如果条件不存在或未完成则为null
    • getRemainingCriteria

      @NotNull @NotNull Collection<String> getRemainingCriteria()
      获取达成此进度尚未满足的条件.

      原文: Get the criteria which have not been awarded.

      返回:
      剩余条件的不可编辑副本
    • getAwardedCriteria

      @NotNull @NotNull Collection<String> getAwardedCriteria()
      获取达成此进度已经满足的条件.

      原文: Gets the criteria which have been awarded.

      返回:
      已满足条件的不可编辑副本