Package io.papermc.paper.advancement
Interface AdvancementDisplay
public interface AdvancementDisplay
Describes the display of an advancement.
 
The display is used in the chat, in the toast messages and the advancements screen.
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic enumDefines how theicon()appears in the advancements screen and the color used with theadvancement name.
- 
Method SummaryModifier and TypeMethodDescriptionGets the texture displayed behind the advancement tree when selected.Gets the description.Gets the formatted display name for this display.booleanGets whether a message should be sent in the chat.booleanGets whether a toast should be displayed.frame()Gets theAdvancementDisplay.Frame.icon()Gets the icon shown in the frame in the advancements screen.booleanisHidden()Gets whether this advancement is hidden.title()Gets the advancement title.
- 
Method Details- 
frameGets theAdvancementDisplay.Frame.This defines the appearance of the tile in the advancements screen and the text when it's completed. - Returns:
- the frame type
 
- 
titleGets the advancement title.- Returns:
- the title
 
- 
descriptionGets the description.- Returns:
- the description
 
- 
iconGets the icon shown in the frame in the advancements screen.- Returns:
- a copy of the icon
 
- 
doesShowToastboolean doesShowToast()Gets whether a toast should be displayed.A toast is a notification that will be displayed in the top right corner of the screen. - Returns:
- trueif a toast should be shown
 
- 
doesAnnounceToChatboolean doesAnnounceToChat()Gets whether a message should be sent in the chat.- Returns:
- trueif a message should be sent
- See Also:
 
- 
isHiddenboolean isHidden()Gets whether this advancement is hidden.Hidden advancements cannot be viewed by the player until they have been unlocked. - Returns:
- trueif hidden
 
- 
backgroundPathGets the texture displayed behind the advancement tree when selected.This only affects root advancements without any parent. If the background is not specified or doesn't exist, the tab background will be the missing texture. - Returns:
- the background texture path
 
- 
displayNameGets the formatted display name for this display. This is a part of the component that would be shown in chat when a player completes the advancement.- Returns:
- the display name
- See Also:
 
 
-