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 SummaryModifier and TypeMethodDescriptionGets the formatted display name for this display.Gets 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- 
getCriteriaGet all the criteria present in this advancement.- Returns:
- a unmodifiable copy of all criteria
 
- 
getDisplayGet the display info of this advancement.Will be nullwhen totally hidden, for example with crafting recipes.- Returns:
- the display info
 
- 
displayNameGets the formatted display name for this display. This is part of the component that would be shown in chat when a player completes the advancement. Will return the same asAdvancementDisplay.displayName()when anAdvancementDisplayis present.- Returns:
- the display name
- See Also:
 
- 
getParentGets the parent advancement, if any.- Returns:
- the parent advancement
 
- 
getChildrenGets all the direct children advancements.- Returns:
- the children advancements
 
- 
getRootGets the root advancement of the tree this is located in.- Returns:
- the root advancement
 
 
-