Struct minecraft_json::minecraft::text::Entity [−][src]
pub struct Entity { pub name: Option<Box<TextComponent>>, pub type: String, pub id: String, }
Expand description
The entity that should be displayed by HoverEvent::ShowEntity
.
Fields
name: Option<Box<TextComponent>>
Hidden if not present. A raw JSON text that is displayed as the name of the entity.
type: String
A string containing the type of the entity. Should be a namespaced entity ID.
Present minecraft:pig
if invalid.
id: String
A string containing the UUID of the entity in the hyphenated hexadecimal format. Should be a valid UUID.
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