diff --git a/core/src/text/mod.rs b/core/src/text/mod.rs index f3c806d..8d998c3 100644 --- a/core/src/text/mod.rs +++ b/core/src/text/mod.rs @@ -17,6 +17,7 @@ use rimecraft_primitives::ErasedSerDeUpdate; ///TODO: Implement net.minecraft.text.Text pub trait Text { fn style(&self) -> &Style; + fn siblings(&self) -> Vec>; } ///The style of a [`Text`].\ @@ -244,7 +245,9 @@ impl HoverEvent { #[inline] pub fn value(&self) -> Option<&T> { if TypeId::of::() == self.contents.1 { - Some(unsafe { &*(&*self.contents.0 as *const (dyn UpdDebug + Send + Sync) as *const T) }) + Some(unsafe { + &*(&*self.contents.0 as *const (dyn UpdDebug + Send + Sync) as *const T) + }) } else { None }