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