#[repr(u32)]pub enum MobEffect {
Show 40 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,
BreathOfTheNautilus = 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
BreathOfTheNautilus = 39
Implementations§
Source§impl MobEffect
impl MobEffect
Sourcepub unsafe fn from_u32_unchecked(id: u32) -> Self
pub unsafe fn from_u32_unchecked(id: u32) -> Self
pub const fn is_valid_id(id: u32) -> bool
Trait Implementations§
Source§impl AzBuf for MobEffect
impl AzBuf for MobEffect
fn azalea_write(&self, buf: &mut impl Write) -> Result<(), Error>
fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>
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<'a> From<MobEffect> for Identifier
impl<'a> From<MobEffect> for Identifier
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 FromStr for MobEffect
Parse the value from a stringified identifier, formatted like
either "air" or "minecraft:air".
impl FromStr for MobEffect
Parse the value from a stringified identifier, formatted like
either "air" or "minecraft:air".
Source§impl Ord for MobEffect
impl Ord for MobEffect
Source§impl PartialOrd for MobEffect
impl PartialOrd for MobEffect
Source§impl ToNbtTag for MobEffect
impl ToNbtTag for MobEffect
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Source§impl<'a> TryFrom<&'a Identifier> for MobEffect
impl<'a> TryFrom<&'a Identifier> for MobEffect
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 UnsafeUnpin 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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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.