Struct UseOnEvent
pub struct UseOnEvent<'a> {
pub stack: &'a ItemStack,
pub pos: [i32; 3],
pub face: [i32; 3],
pub hand: Hand,
pub hit: BlockHit,
pub player: u128,
pub player_entity_id: i32,
}Expand description
What ItemPart::use_on is told. Each field is that hook’s argument of the same name, described in the hook’s doc.
Fields§
§stack: &'a ItemStack§pos: [i32; 3]§face: [i32; 3]§hand: Hand§hit: BlockHit§player: u128§player_entity_id: i32Auto Trait Implementations§
impl<'a> Freeze for UseOnEvent<'a>
impl<'a> RefUnwindSafe for UseOnEvent<'a>
impl<'a> Send for UseOnEvent<'a>
impl<'a> Sync for UseOnEvent<'a>
impl<'a> Unpin for UseOnEvent<'a>
impl<'a> UnsafeUnpin for UseOnEvent<'a>
impl<'a> UnwindSafe for UseOnEvent<'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