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