pub enum HoverEvent<V> {
ShowText {
value: Box<Component<V>>,
},
ShowItem {
id: ResourceLocation,
count: Option<i32>,
components: BTreeMap<ResourceLocation, V>,
},
ShowEntity {
name: Option<Box<Component<V>>>,
id: ResourceLocation,
uuid: Uuid,
},
}Expand description
Content shown when a styled component is hovered.
Variants§
ShowText
Shows another text component.
ShowItem
Shows an item stack.
Fields
§
id: ResourceLocationThe item type.
§
components: BTreeMap<ResourceLocation, V>Item data components keyed by resource location.
ShowEntity
Shows entity information.
Trait Implementations§
Source§impl<V: Clone> Clone for HoverEvent<V>
impl<V: Clone> Clone for HoverEvent<V>
Source§fn clone(&self) -> HoverEvent<V>
fn clone(&self) -> HoverEvent<V>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<V: Debug> Debug for HoverEvent<V>
impl<V: Debug> Debug for HoverEvent<V>
Source§impl<'de, V> Deserialize<'de> for HoverEvent<V>where
V: Deserialize<'de>,
impl<'de, V> Deserialize<'de> for HoverEvent<V>where
V: Deserialize<'de>,
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<V: PartialEq> PartialEq for HoverEvent<V>
impl<V: PartialEq> PartialEq for HoverEvent<V>
Source§impl<V> Serialize for HoverEvent<V>where
V: Serialize,
impl<V> Serialize for HoverEvent<V>where
V: Serialize,
impl<V: PartialEq> StructuralPartialEq for HoverEvent<V>
Auto Trait Implementations§
impl<V> Freeze for HoverEvent<V>
impl<V> RefUnwindSafe for HoverEvent<V>where
V: RefUnwindSafe,
impl<V> Send for HoverEvent<V>where
V: Send,
impl<V> Sync for HoverEvent<V>where
V: Sync,
impl<V> Unpin for HoverEvent<V>
impl<V> UnsafeUnpin for HoverEvent<V>
impl<V> UnwindSafe for HoverEvent<V>where
V: RefUnwindSafe + UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more