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