Struct ItemSpawnEvent
pub struct ItemSpawnEvent<'a> {
pub entity: u32,
pub item: &'a str,
pub count: i32,
pub pos: [f64; 3],
}Expand description
What Hooks::item_spawn is told. Each field is that hook’s argument of the same name, described in the hook’s doc.
Fields§
§entity: u32§item: &'a str§count: i32§pos: [f64; 3]Auto Trait Implementations§
impl<'a> Freeze for ItemSpawnEvent<'a>
impl<'a> RefUnwindSafe for ItemSpawnEvent<'a>
impl<'a> Send for ItemSpawnEvent<'a>
impl<'a> Sync for ItemSpawnEvent<'a>
impl<'a> Unpin for ItemSpawnEvent<'a>
impl<'a> UnsafeUnpin for ItemSpawnEvent<'a>
impl<'a> UnwindSafe for ItemSpawnEvent<'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