public interface DisplayInfo
Modifier and Type | Interface and Description |
---|---|
static interface |
DisplayInfo.Builder
A builder to create
DisplayInfo s. |
Modifier and Type | Method and Description |
---|---|
static DisplayInfo.Builder |
builder()
Creates a new
DisplayInfo.Builder to create DisplayInfo s. |
boolean |
doesAnnounceToChat()
Gets whether a notification should be shown in the global chat.
|
boolean |
doesShowToast()
Gets whether a toast should be shown.
|
Text |
getDescription()
Gets the description.
|
ItemStackSnapshot |
getIcon()
Gets the icon.
|
Text |
getTitle()
Gets the title.
|
AdvancementType |
getType()
Gets the
AdvancementType . |
boolean |
isHidden()
Gets whether this advancement is hidden.
|
static DisplayInfo.Builder builder()
DisplayInfo.Builder
to create DisplayInfo
s.AdvancementType getType()
AdvancementType
.Text getDescription()
ItemStackSnapshot getIcon()
Text getTitle()
boolean doesShowToast()
The toast is the notification that will be displayed in the top right corner.
boolean doesAnnounceToChat()
boolean isHidden()
Hidden advancements will only appear in the tree once they are unlocked. The lines that connect them to other advancements are still present.