#[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§
Source§impl MobEffect
impl MobEffect
pub fn read_from_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MobEffect
impl<'de> Deserialize<'de> for MobEffect
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 McBufReadable for MobEffect
impl McBufReadable for MobEffect
Source§impl McBufWritable for MobEffect
impl McBufWritable 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>
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)