Struct LivingEquipmentChangeEvent
pub struct LivingEquipmentChangeEvent<'a> {
pub entity: u32,
pub kind: &'a str,
pub slot: &'a str,
pub from: Option<&'a ItemStack>,
pub to: Option<&'a ItemStack>,
}Expand description
What Hooks::living_equipment_change is told. Each field is that hook’s argument of the same name, described in the hook’s doc.
Fields§
§entity: u32§kind: &'a str§slot: &'a str§from: Option<&'a ItemStack>§to: Option<&'a ItemStack>Auto Trait Implementations§
impl<'a> Freeze for LivingEquipmentChangeEvent<'a>
impl<'a> RefUnwindSafe for LivingEquipmentChangeEvent<'a>
impl<'a> Send for LivingEquipmentChangeEvent<'a>
impl<'a> Sync for LivingEquipmentChangeEvent<'a>
impl<'a> Unpin for LivingEquipmentChangeEvent<'a>
impl<'a> UnsafeUnpin for LivingEquipmentChangeEvent<'a>
impl<'a> UnwindSafe for LivingEquipmentChangeEvent<'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