#745: Expose more information about advancements

By: MartenM <marten.struijk@gmail.com>
This commit is contained in:
Bukkit/Spigot
2022-06-05 16:23:46 +10:00
parent 5e9386f3e0
commit 9bfa9ca85b
3 changed files with 134 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ package org.bukkit.advancement;
import java.util.Collection;
import org.bukkit.Keyed;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/**
* Represents an advancement that may be awarded to a player. This class is not
@@ -17,4 +18,14 @@ public interface Advancement extends Keyed {
*/
@NotNull
Collection<String> getCriteria();
/**
* Returns the display information for this advancement.
*
* This includes it's name, description and other visible tags.
*
* @return a AdvancementDisplay object, or null if not set.
*/
@Nullable
AdvancementDisplay getDisplay();
}