#[repr(u32)]pub enum MobEffect {
Show 39 variants
Speed = 0,
Slowness = 1,
Haste = 2,
MiningFatigue = 3,
Strength = 4,
InstantHealth = 5,
InstantDamage = 6,
JumpBoost = 7,
Nausea = 8,
Regeneration = 9,
Resistance = 10,
FireResistance = 11,
WaterBreathing = 12,
Invisibility = 13,
Blindness = 14,
NightVision = 15,
Hunger = 16,
Weakness = 17,
Poison = 18,
Wither = 19,
HealthBoost = 20,
Absorption = 21,
Saturation = 22,
Glowing = 23,
Levitation = 24,
Luck = 25,
Unluck = 26,
SlowFalling = 27,
ConduitPower = 28,
DolphinsGrace = 29,
BadOmen = 30,
HeroOfTheVillage = 31,
Darkness = 32,
TrialOmen = 33,
RaidOmen = 34,
WindCharged = 35,
Weaving = 36,
Oozing = 37,
Infested = 38,
}
Variants§
Speed = 0
Slowness = 1
Haste = 2
MiningFatigue = 3
Strength = 4
InstantHealth = 5
InstantDamage = 6
JumpBoost = 7
Nausea = 8
Regeneration = 9
Resistance = 10
FireResistance = 11
WaterBreathing = 12
Invisibility = 13
Blindness = 14
NightVision = 15
Hunger = 16
Weakness = 17
Poison = 18
Wither = 19
HealthBoost = 20
Absorption = 21
Saturation = 22
Glowing = 23
Levitation = 24
Luck = 25
Unluck = 26
SlowFalling = 27
ConduitPower = 28
DolphinsGrace = 29
BadOmen = 30
HeroOfTheVillage = 31
Darkness = 32
TrialOmen = 33
RaidOmen = 34
WindCharged = 35
Weaving = 36
Oozing = 37
Infested = 38
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MobEffect
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for MobEffect
Available on crate feature
serde
only.Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromNbtTag for MobEffect
impl FromNbtTag for MobEffect
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl ToNbtTag for MobEffect
impl ToNbtTag for MobEffect
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
impl Copy for MobEffect
impl Eq for MobEffect
impl StructuralPartialEq for MobEffect
Auto Trait Implementations§
impl Freeze for MobEffect
impl RefUnwindSafe for MobEffect
impl Send for MobEffect
impl Sync for MobEffect
impl Unpin for MobEffect
impl UnwindSafe for MobEffect
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.