Struct minecraft_json::minecraft::data::advancement::Display [−][src]
pub struct Display { pub icon: Option<Icon>, pub title: TextComponent, pub frame: Frame, pub background: Option<String>, pub description: TextComponent, pub show_toast: bool, pub announce_to_chat: bool, pub hidden: bool, }
Expand description
Display data for an Advancement
.
Fields
icon: Option<Icon>
The data for the icon.
title: TextComponent
The title for this advancement.
frame: Frame
The optional type of frame for the icon.
background: Option<String>
The optional directory for the background to use in this advancement tab (used only for the root advancement).
description: TextComponent
The description of the advancement.
show_toast: bool
Whether or not to show the toast pop up after completing this advancement.
Defaults to true
.
announce_to_chat: bool
Whether or not to announce in the chat when this advancement has been completed.
Defaults to true
.
Whether or not 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. Defaults to false
.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more