Struct TooltipAppendContext
pub struct TooltipAppendContext {
pub player: u128,
pub player_entity_id: i32,
pub advanced: bool,
pub creative: bool,
pub nested: bool,
}Expand description
What a tooltip is about, as its appender gets it: the local player and the tooltip’s flags.
Fields§
§player: u128The local player’s UUID, including for nested projectiles where vanilla passes no player.
player_entity_id: i32The local player’s entity id.
advanced: boolTooltipFlag.isAdvanced (F3+H).
creative: boolTooltipFlag.isCreative: a creative tab’s own slot.
nested: boolA crossbow’s loaded projectile, whose details its crossbow lists.
Trait Implementations§
§impl Clone for TooltipAppendContext
impl Clone for TooltipAppendContext
§fn clone(&self) -> TooltipAppendContext
fn clone(&self) -> TooltipAppendContext
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 moreimpl Copy for TooltipAppendContext
§impl Debug for TooltipAppendContext
impl Debug for TooltipAppendContext
impl Eq for TooltipAppendContext
§impl PartialEq for TooltipAppendContext
impl PartialEq for TooltipAppendContext
impl StructuralPartialEq for TooltipAppendContext
Auto Trait Implementations§
impl Freeze for TooltipAppendContext
impl RefUnwindSafe for TooltipAppendContext
impl Send for TooltipAppendContext
impl Sync for TooltipAppendContext
impl Unpin for TooltipAppendContext
impl UnsafeUnpin for TooltipAppendContext
impl UnwindSafe for TooltipAppendContext
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