Struct GetEnchantmentLevelEvent
pub struct GetEnchantmentLevelEvent<'a> {
pub stack: &'a ItemStack,
pub target: Option<&'a Identifier>,
pub enchantments: &'a mut ItemEnchantments,
}Expand description
What Hooks::get_enchantment_level is told. Each field is that hook’s argument of the same name, described in the hook’s doc.
Fields§
§stack: &'a ItemStack§target: Option<&'a Identifier>§enchantments: &'a mut ItemEnchantmentsAuto Trait Implementations§
impl<'a> !UnwindSafe for GetEnchantmentLevelEvent<'a>
impl<'a> Freeze for GetEnchantmentLevelEvent<'a>
impl<'a> RefUnwindSafe for GetEnchantmentLevelEvent<'a>
impl<'a> Send for GetEnchantmentLevelEvent<'a>
impl<'a> Sync for GetEnchantmentLevelEvent<'a>
impl<'a> Unpin for GetEnchantmentLevelEvent<'a>
impl<'a> UnsafeUnpin for GetEnchantmentLevelEvent<'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