#745: Expose more information about advancements
By: MartenM <marten.struijk@gmail.com>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user