Struct GetEquipmentDropChanceEvent
pub struct GetEquipmentDropChanceEvent<'a> {
pub entity: u32,
pub kind: &'a str,
pub slot: EquipmentSlot,
pub source: &'a HurtSource<'a>,
pub recently_hit: bool,
pub stack: &'a ItemStack,
pub original_chance: f32,
pub preserved: bool,
pub chance: f32,
}Expand description
What Hooks::get_equipment_drop_chance 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: EquipmentSlot§source: &'a HurtSource<'a>§recently_hit: bool§stack: &'a ItemStack§original_chance: f32§preserved: bool§chance: f32Auto Trait Implementations§
impl<'a> Freeze for GetEquipmentDropChanceEvent<'a>
impl<'a> RefUnwindSafe for GetEquipmentDropChanceEvent<'a>
impl<'a> Send for GetEquipmentDropChanceEvent<'a>
impl<'a> Sync for GetEquipmentDropChanceEvent<'a>
impl<'a> Unpin for GetEquipmentDropChanceEvent<'a>
impl<'a> UnsafeUnpin for GetEquipmentDropChanceEvent<'a>
impl<'a> UnwindSafe for GetEquipmentDropChanceEvent<'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