Class BaseAdvancement

java.lang.Object
com.fren_gor.ultimateAdvancementAPI.advancement.Advancement
com.fren_gor.ultimateAdvancementAPI.advancement.BaseAdvancement
Direct Known Subclasses:
AbstractMultiParentsAdvancement, AbstractMultiTasksAdvancement, FakeAdvancement, TaskAdvancement

public class BaseAdvancement extends Advancement
BaseAdvancement directly extends Advancement. It represents an advancement with a parent advancement.
  • Field Details

    • parent

      @NotNull protected final @NotNull Advancement parent
      The advancement parent of the advancement.

      The advancement is visually linked with the parent in the advancement GUI.

  • Constructor Details

    • BaseAdvancement

      public BaseAdvancement(@NotNull @NotNull String key, @NotNull @NotNull AdvancementDisplay display, @NotNull @NotNull Advancement parent)
      Creates a new BaseAdvancement with a maximum progression of 1.

      The tab of this advancement will be the parent one.

      Parameters:
      key - The unique key of the advancement. It must be unique among the other advancements of the tab.
      display - The display information of this advancement.
      parent - The parent of this advancement.
    • BaseAdvancement

      public BaseAdvancement(@NotNull @NotNull String key, @NotNull @NotNull AdvancementDisplay display, @NotNull @NotNull Advancement parent, @Range(from=1, to=Integer.MAX_VALUE) int maxProgression)
      Creates a new BaseAdvancement.

      The tab of this advancement will be the parent one.

      Parameters:
      key - The unique key of the advancement. It must be unique among the other advancements of the tab.
      display - The display information of this advancement.
      parent - The parent of this advancement.
      maxProgression - The maximum advancement progression.
  • Method Details