Package org.bukkit.advancement
Interface Advancement
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 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.Returns the requirements for this advancement.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
-
getRequirements
Returns the requirements for this advancement.- Returns:
- an AdvancementRequirements object.
-
getDisplay
Get the display info of this advancement.Will be
null
when totally hidden, for example with crafting recipes.- Returns:
- the display info
-
displayName
Gets 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 anAdvancementDisplay
is present.- Returns:
- the display name
- See Also:
-
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
-