Struct EnchantedEntityLootEvent
pub struct EnchantedEntityLootEvent<'a> {
pub entity: LivingRef,
pub source: &'a HurtSource<'a>,
pub attacker: Option<EntityRef>,
pub enchantment: &'a Identifier,
pub level: u32,
}Expand description
What Hooks::enchanted_entity_loot is told. Each field is that hook’s argument of the same name, described in the hook’s doc.
Fields§
§entity: LivingRef§source: &'a HurtSource<'a>§attacker: Option<EntityRef>§enchantment: &'a Identifier§level: u32Auto Trait Implementations§
impl<'a> Freeze for EnchantedEntityLootEvent<'a>
impl<'a> RefUnwindSafe for EnchantedEntityLootEvent<'a>
impl<'a> Send for EnchantedEntityLootEvent<'a>
impl<'a> Sync for EnchantedEntityLootEvent<'a>
impl<'a> Unpin for EnchantedEntityLootEvent<'a>
impl<'a> UnsafeUnpin for EnchantedEntityLootEvent<'a>
impl<'a> UnwindSafe for EnchantedEntityLootEvent<'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