Commits

Nothixal authored and md_5 committed e8a318d46e5
#1067: Add method to get Advancement requirements
No tags

src/main/java/org/bukkit/advancement/Advancement.java

Modified
12 12 public interface Advancement extends Keyed {
13 13
14 14 /**
15 15 * Get all the criteria present in this advancement.
16 16 *
17 17 * @return a unmodifiable copy of all criteria
18 18 */
19 19 @NotNull
20 20 Collection<String> getCriteria();
21 21
22 + /**
23 + * Returns the requirements for this advancement.
24 + *
25 + * @return an AdvancementRequirements object.
26 + */
27 + @NotNull
28 + AdvancementRequirements getRequirements();
29 +
22 30 /**
23 31 * Returns the display information for this advancement.
24 32 *
25 33 * This includes it's name, description and other visible tags.
26 34 *
27 35 * @return a AdvancementDisplay object, or null if not set.
28 36 */
29 37 @Nullable
30 38 AdvancementDisplay getDisplay();
31 39 }

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut