Struct OnEntitySwingEvent
pub struct OnEntitySwingEvent<'a> {
pub stack: &'a ItemStack,
pub entity: Option<i32>,
pub hand: Hand,
}Expand description
What ItemPart::on_entity_swing is told. Each field is that hook’s argument of the same name, described in the hook’s doc.
Fields§
§stack: &'a ItemStack§entity: Option<i32>§hand: HandAuto Trait Implementations§
impl<'a> Freeze for OnEntitySwingEvent<'a>
impl<'a> RefUnwindSafe for OnEntitySwingEvent<'a>
impl<'a> Send for OnEntitySwingEvent<'a>
impl<'a> Sync for OnEntitySwingEvent<'a>
impl<'a> Unpin for OnEntitySwingEvent<'a>
impl<'a> UnsafeUnpin for OnEntitySwingEvent<'a>
impl<'a> UnwindSafe for OnEntitySwingEvent<'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