Package org.bukkit.advancement
Interface Advancement
- All Superinterfaces:
net.kyori.adventure.key.Keyed
,Keyed
Represents an advancement that may be awarded to a player. This class is not
reference safe as the underlying advancement may be reloaded.
-
Method Summary
Modifier and TypeMethodDescriptionGets all the direct children advancements.Get all the criteria present in this advancement.Get the display info of this advancement.Gets the parent advancement, if any.getRoot()
Gets the root advancement of the tree this is located in.
-
Method Details
-
getCriteria
Get all the criteria present in this advancement.- Returns:
- a unmodifiable copy of all criteria
-
getDisplay
Get the display info of this advancement.Will be
null
when totally hidden, for example with crafting recipes.- Returns:
- the display info
-
getParent
Gets the parent advancement, if any.- Returns:
- the parent advancement
-
getChildren
Gets all the direct children advancements.- Returns:
- the children advancements
-
getRoot
Gets the root advancement of the tree this is located in.- Returns:
- the root advancement
-