Interface Advancement

All Superinterfaces:
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

      @NotNull Collection<String> getCriteria()
      Get all the criteria present in this advancement.
      Returns:
      a unmodifiable copy of all criteria
    • getRequirements

      @NotNull AdvancementRequirements getRequirements()
      Returns the requirements for this advancement.
      Returns:
      an AdvancementRequirements object.
    • getDisplay

      @Nullable AdvancementDisplay getDisplay()
      Returns the display information for this advancement. This includes it's name, description and other visible tags.
      Returns:
      a AdvancementDisplay object, or null if not set.