pub enum EnchantmentEntityEffect {
AllOf(&'static [&'static EnchantmentEntityEffect]),
ChangeItemDamage {
amount: &'static LevelBasedValue,
},
ApplyExhaustion {
amount: &'static LevelBasedValue,
},
ApplyImpulse {
direction: DVec3,
coordinate_scale: DVec3,
magnitude: &'static LevelBasedValue,
},
PlaySound {
sounds: &'static [SoundEventRef],
volume: f32,
pitch: f32,
},
DamageEntity {
min_damage: &'static LevelBasedValue,
max_damage: &'static LevelBasedValue,
damage_type: DamageTypeRef,
},
Ignite {
duration: &'static LevelBasedValue,
},
ApplyMobEffect {
to_apply: MobEffectSelection,
min_duration: &'static LevelBasedValue,
max_duration: &'static LevelBasedValue,
min_amplifier: &'static LevelBasedValue,
max_amplifier: &'static LevelBasedValue,
},
Unsupported {
effect_type: Identifier,
},
}Variants§
AllOf(&'static [&'static EnchantmentEntityEffect])
ChangeItemDamage
Fields
§
amount: &'static LevelBasedValueApplyExhaustion
Fields
§
amount: &'static LevelBasedValueApplyImpulse
PlaySound
DamageEntity
Fields
§
min_damage: &'static LevelBasedValue§
max_damage: &'static LevelBasedValue§
damage_type: DamageTypeRefIgnite
Fields
§
duration: &'static LevelBasedValueApplyMobEffect
Fields
§
to_apply: MobEffectSelection§
min_duration: &'static LevelBasedValue§
max_duration: &'static LevelBasedValue§
min_amplifier: &'static LevelBasedValue§
max_amplifier: &'static LevelBasedValueUnsupported
Fields
§
effect_type: IdentifierTrait Implementations§
Auto Trait Implementations§
impl Freeze for EnchantmentEntityEffect
impl RefUnwindSafe for EnchantmentEntityEffect
impl Send for EnchantmentEntityEffect
impl Sync for EnchantmentEntityEffect
impl Unpin for EnchantmentEntityEffect
impl UnsafeUnpin for EnchantmentEntityEffect
impl UnwindSafe for EnchantmentEntityEffect
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
§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<>>