Commits

MartenM authored and md_5 committed 6a039faf748
#745: Expose more information about advancements
No tags

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

Modified
1 1 package org.bukkit.advancement;
2 2
3 3 import java.util.Collection;
4 4 import org.bukkit.Keyed;
5 5 import org.jetbrains.annotations.NotNull;
6 +import org.jetbrains.annotations.Nullable;
6 7
7 8 /**
8 9 * Represents an advancement that may be awarded to a player. This class is not
9 10 * reference safe as the underlying advancement may be reloaded.
10 11 */
11 12 public interface Advancement extends Keyed {
12 13
13 14 /**
14 15 * Get all the criteria present in this advancement.
15 16 *
16 17 * @return a unmodifiable copy of all criteria
17 18 */
18 19 @NotNull
19 20 Collection<String> getCriteria();
21 +
22 + /**
23 + * Returns the display information for this advancement.
24 + *
25 + * This includes it's name, description and other visible tags.
26 + *
27 + * @return a AdvancementDisplay object, or null if not set.
28 + */
29 + @Nullable
30 + AdvancementDisplay getDisplay();
20 31 }

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

Add shortcut