pub struct Effect {
pub id: u8,
pub amplifier: i8,
pub duration: i32,
pub flags: u8,
}Expand description
An active status effect as the server reported it.
Fields§
§id: u8Effect id (1 = speed, 8 = jump boost, …).
amplifier: i8Amplifier (level - 1).
duration: i32Duration in ticks at the time of the packet (not counted down here).
flags: u81.8: bit 0 = hide particles. 1.16: bit 0 ambient, bit 1 show particles, bit 2 show icon.
Trait Implementations§
impl Copy for Effect
impl Eq for Effect
impl StructuralPartialEq for Effect
Auto Trait Implementations§
impl Forget for Effect
impl Freeze for Effect
impl RefUnwindSafe for Effect
impl Send for Effect
impl Sync for Effect
impl Unpin for Effect
impl UnsafeUnpin for Effect
impl UnwindSafe for Effect
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