Struct ItemClick
#[non_exhaustive]pub struct ItemClick<'a> {
pub side: LogicalSide,
pub dimension: Dimension,
pub pos: [i32; 3],
pub hand: Hand,
pub stack: &'a ItemStack,
pub player: u128,
pub player_entity_id: i32,
}Expand description
A player’s item use, including after target fallthrough (RightClickItem).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.side: LogicalSideThe side the click is handled on.
dimension: DimensionThe dimension the player is in.
pos: [i32; 3]The block containing the clicking player’s feet (getPos).
hand: HandThe hand that holds the stack.
stack: &'a ItemStackThe stack in that hand.
player: u128The clicking player’s UUID.
player_entity_id: i32The clicking player’s network id.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ItemClick<'a>
impl<'a> RefUnwindSafe for ItemClick<'a>
impl<'a> Send for ItemClick<'a>
impl<'a> Sync for ItemClick<'a>
impl<'a> Unpin for ItemClick<'a>
impl<'a> UnsafeUnpin for ItemClick<'a>
impl<'a> UnwindSafe for ItemClick<'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