Struct ItemCraftedEvent
pub struct ItemCraftedEvent<'a> {
pub player: u128,
pub recipe: &'a str,
pub stack: &'a ItemStack,
}Expand description
What Hooks::item_crafted is told. Each field is that hook’s argument of the same name, described in the hook’s doc.
Fields§
§player: u128§recipe: &'a str§stack: &'a ItemStackAuto Trait Implementations§
impl<'a> Freeze for ItemCraftedEvent<'a>
impl<'a> RefUnwindSafe for ItemCraftedEvent<'a>
impl<'a> Send for ItemCraftedEvent<'a>
impl<'a> Sync for ItemCraftedEvent<'a>
impl<'a> Unpin for ItemCraftedEvent<'a>
impl<'a> UnsafeUnpin for ItemCraftedEvent<'a>
impl<'a> UnwindSafe for ItemCraftedEvent<'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