azalea_chat/hover_event.rs
1use serde::Serialize;
2
3use crate::FormattedText;
4
5#[derive(Clone, Debug, PartialEq, Serialize)]
6#[serde(rename_all = "snake_case", tag = "action")]
7pub enum HoverEvent {
8 ShowText {
9 value: Box<FormattedText>,
10 },
11 // TODO
12 ShowItem {
13 // item: ItemStack,
14 },
15 ShowEntity {
16 id: i32,
17 // uuid: Uuid,
18 name: Box<FormattedText>,
19 },
20}