pub struct SuspiciousStewEffect {
effect: MobEffectRef,
duration: i32,
}Expand description
One effect granted by a suspicious stew.
Fields§
§effect: MobEffectRef§duration: i32Implementations§
Source§impl SuspiciousStewEffect
impl SuspiciousStewEffect
pub const DEFAULT_DURATION: i32 = 160
pub const fn new(effect: MobEffectRef, duration: i32) -> Self
pub const fn effect(&self) -> MobEffectRef
pub const fn duration(&self) -> i32
fn to_nbt_compound(&self) -> NbtCompound
fn from_nbt_compound(compound: &NbtCompound) -> Option<Self>
Trait Implementations§
Source§impl Clone for SuspiciousStewEffect
impl Clone for SuspiciousStewEffect
Source§fn clone(&self) -> SuspiciousStewEffect
fn clone(&self) -> SuspiciousStewEffect
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SuspiciousStewEffect
impl Debug for SuspiciousStewEffect
Source§impl HashComponent for SuspiciousStewEffect
impl HashComponent for SuspiciousStewEffect
Source§fn hash_component(&self, hasher: &mut ComponentHasher)
fn hash_component(&self, hasher: &mut ComponentHasher)
Hashes this value into the given hasher.
Source§fn compute_hash(&self) -> i32
fn compute_hash(&self) -> i32
Computes the hash of this value.
Source§impl PartialEq for SuspiciousStewEffect
impl PartialEq for SuspiciousStewEffect
Source§impl ReadFrom for SuspiciousStewEffect
impl ReadFrom for SuspiciousStewEffect
Auto Trait Implementations§
impl Freeze for SuspiciousStewEffect
impl RefUnwindSafe for SuspiciousStewEffect
impl Send for SuspiciousStewEffect
impl Sync for SuspiciousStewEffect
impl Unpin for SuspiciousStewEffect
impl UnsafeUnpin for SuspiciousStewEffect
impl UnwindSafe for SuspiciousStewEffect
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreWraps this value in an
Arc<SyncMutex<>>