Interface Advancement

All Superinterfaces:
Keyed, Keyed

public interface Advancement extends Keyed
Represents an advancement that may be awarded to a player. This class is not reference safe as the underlying advancement may be reloaded.
  • Method Details

    • getCriteria

      Get all the criteria present in this advancement.
      Returns:
      a unmodifiable copy of all criteria
    • getDisplay

      Get the display info of this advancement.

      Will be null when totally hidden, for example with crafting recipes.

      Returns:
      the display info
    • displayName

      @NotNull Component displayName()
      Gets the formatted display name for this display. This is part of the component that would be shown in chat when a player completes the advancement. Will return the same as AdvancementDisplay.displayName() when an AdvancementDisplay is present.
      Returns:
      the display name
      See Also:
    • getParent

      Gets the parent advancement, if any.
      Returns:
      the parent advancement
    • getChildren

      Gets all the direct children advancements.
      Returns:
      the children advancements
    • getRoot

      Gets the root advancement of the tree this is located in.
      Returns:
      the root advancement
    • getSaveSection

      @NotNull NamespacedKey getSaveSection()
      이 발전 과제의 저장 구역을 가져옵니다.
      Returns:
      저장 구역
    • getReward

      발전 과제 보상을 가져옵니다.
      Returns:
      발전 과제 보상
    • useCount

      boolean useCount()
      발전 과제가 카운트를 사용하는지 확인합니다.
      Returns:
      이 발전 과제가 카운트를 사용하는 경우 true를 반환
    • maxCount

      int maxCount()
      발전 과제의 최대 카운트를 가져옵니다.
      Returns:
      발전 과제의 최대 카운트
    • getExtra

      @Nullable JsonObject getExtra()
      발전 과제의 추가 JSON 데이터를 가져옵니다.
      Returns:
      JSON 데이터