Struct PrepareItemEnchantEvent
pub struct PrepareItemEnchantEvent<'a> {
pub player: u128,
pub name: &'a str,
pub pos: [i32; 3],
pub costs: &'a mut [i32; 3],
}Expand description
What Hooks::prepare_item_enchant 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]§costs: &'a mut [i32; 3]Auto Trait Implementations§
impl<'a> !UnwindSafe for PrepareItemEnchantEvent<'a>
impl<'a> Freeze for PrepareItemEnchantEvent<'a>
impl<'a> RefUnwindSafe for PrepareItemEnchantEvent<'a>
impl<'a> Send for PrepareItemEnchantEvent<'a>
impl<'a> Sync for PrepareItemEnchantEvent<'a>
impl<'a> Unpin for PrepareItemEnchantEvent<'a>
impl<'a> UnsafeUnpin for PrepareItemEnchantEvent<'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