Struct PlayerEnchantItemEvent
pub struct PlayerEnchantItemEvent<'a> {
pub player: u128,
pub player_entity_id: i32,
pub item: &'a ItemStack,
pub enchantments: &'a [(Arc<str>, u32)],
}Expand description
What Hooks::player_enchant_item is told. Each field is that hook’s argument of the same name, described in the hook’s doc.
Fields§
§player: u128§player_entity_id: i32§item: &'a ItemStack§enchantments: &'a [(Arc<str>, u32)]Auto Trait Implementations§
impl<'a> Freeze for PlayerEnchantItemEvent<'a>
impl<'a> RefUnwindSafe for PlayerEnchantItemEvent<'a>
impl<'a> Send for PlayerEnchantItemEvent<'a>
impl<'a> Sync for PlayerEnchantItemEvent<'a>
impl<'a> Unpin for PlayerEnchantItemEvent<'a>
impl<'a> UnsafeUnpin for PlayerEnchantItemEvent<'a>
impl<'a> UnwindSafe for PlayerEnchantItemEvent<'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