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