Struct LivingGetProjectileEvent
pub struct LivingGetProjectileEvent<'a> {
pub player: Option<u128>,
pub name: &'a str,
pub entity: Option<u32>,
pub kind: &'a str,
pub weapon: &'a ItemStack,
pub projectile: &'a mut Option<ItemStack>,
}Expand description
What Hooks::living_get_projectile is told. Each field is that hook’s argument of the same name, described in the hook’s doc.
Fields§
§player: Option<u128>§name: &'a str§entity: Option<u32>§kind: &'a str§weapon: &'a ItemStack§projectile: &'a mut Option<ItemStack>Auto Trait Implementations§
impl<'a> !UnwindSafe for LivingGetProjectileEvent<'a>
impl<'a> Freeze for LivingGetProjectileEvent<'a>
impl<'a> RefUnwindSafe for LivingGetProjectileEvent<'a>
impl<'a> Send for LivingGetProjectileEvent<'a>
impl<'a> Sync for LivingGetProjectileEvent<'a>
impl<'a> Unpin for LivingGetProjectileEvent<'a>
impl<'a> UnsafeUnpin for LivingGetProjectileEvent<'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