Package org.bukkit.advancement
Interface AdvancementDisplay
public interface AdvancementDisplay
Holds information about how the advancement is displayed by the game.
- 
Method SummaryModifier and TypeMethodDescriptionGets the visible description of the advancement.getIcon()The icon that is used for this advancement.getTitle()Gets the title of the advancement.getType()The display type of this advancement.floatgetX()The X position of the advancement in the advancement screen.floatgetY()The Y position of the advancement in the advancement screen.booleanisHidden()Whether to hide this advancement and all its children from the advancement screen until this advancement have been completed.booleanWhether to announce in the chat when this advancement has been completed.booleanWhether to show a toast to the player when this advancement has been completed.
- 
Method Details- 
getTitleGets the title of the advancement.- Returns:
- The advancement title without colour codes.
 
- 
getDescriptionGets the visible description of the advancement.- Returns:
- The advancement description without colour codes.
 
- 
getIconThe icon that is used for this advancement.- Returns:
- an ItemStack that represents the advancement.
 
- 
shouldShowToastboolean shouldShowToast()Whether to show a toast to the player when this advancement has been completed.- Returns:
- true if a toast is shown.
 
- 
shouldAnnounceChatboolean shouldAnnounceChat()Whether to announce in the chat when this advancement has been completed.- Returns:
- true if announced in chat.
 
- 
isHiddenboolean isHidden()Whether to hide this advancement and all its children from the advancement screen until this advancement have been completed. Has no effect on root advancements themselves, but still affects all their children.- Returns:
- true if hidden.
 
- 
getXfloat getX()The X position of the advancement in the advancement screen.- Returns:
- the X coordinate as float
 
- 
getYfloat getY()The Y position of the advancement in the advancement screen.- Returns:
- the Y coordinate as float
 
- 
getTypeThe display type of this advancement.- Returns:
- an enum representing the type.
 
 
-