Struct minecraft_json::minecraft::text::Formatting [−][src]
pub struct Formatting { pub color: Option<Colour>, pub font: Option<String>, pub bold: Option<bool>, pub italic: Option<bool>, pub underlined: Option<bool>, pub strikethrough: Option<bool>, pub obfuscated: Option<bool>, }
Expand description
Formatting properties for a TextComponent
, can be inherited.
Fields
color: Option<Colour>
The color to render the content in. See also Colour
.
font: Option<String>
The resource location of the font for this component in the resource pack within
assets/<namespace>/font
. Defaults to "minecraft:default"
.
bold: Option<bool>
Whether to render the content in bold.
italic: Option<bool>
Whether to render the content in italics. Note that text that is italicized by default,
such as custom item names, can be unitalicized by setting this to false
.
underlined: Option<bool>
Whether to underline the content.
strikethrough: Option<bool>
Whether to strikethrough the content.
obfuscated: Option<bool>
Whether to render the content obfuscated.
Trait Implementations
Returns the “default value” for a type. Read more
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.