Struct ItemTooltipEvent
pub struct ItemTooltipEvent<'a> {
pub player: u128,
pub player_entity_id: i32,
pub stack: &'a ItemStack,
pub display: &'a TooltipDisplay<'a>,
pub advanced: bool,
pub creative: bool,
pub lines: &'a mut Vec<(Text, u32)>,
}Expand description
What Hooks::item_tooltip is told. Each field is that hook’s argument of the same name, described in the hook’s doc.
Fields§
§player: u128§player_entity_id: i32§stack: &'a ItemStack§display: &'a TooltipDisplay<'a>§advanced: bool§creative: bool§lines: &'a mut Vec<(Text, u32)>Auto Trait Implementations§
impl<'a> !UnwindSafe for ItemTooltipEvent<'a>
impl<'a> Freeze for ItemTooltipEvent<'a>
impl<'a> RefUnwindSafe for ItemTooltipEvent<'a>
impl<'a> Send for ItemTooltipEvent<'a>
impl<'a> Sync for ItemTooltipEvent<'a>
impl<'a> Unpin for ItemTooltipEvent<'a>
impl<'a> UnsafeUnpin for ItemTooltipEvent<'a>
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