Commits
MartenM authored and md_5 committed 6a039faf748
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 | |
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 + | |
30 + | AdvancementDisplay getDisplay(); |
20 31 | } |