mob_effect

Enum mob_effect 

Source
#[repr(u8)]
pub enum mob_effect {
Show 40 variants speed = 0, slowness = 1, haste = 2, mining_fatigue = 3, strength = 4, instant_health = 5, instant_damage = 6, jump_boost = 7, nausea = 8, regeneration = 9, resistance = 10, fire_resistance = 11, water_breathing = 12, invisibility = 13, blindness = 14, night_vision = 15, hunger = 16, weakness = 17, poison = 18, wither = 19, health_boost = 20, absorption = 21, saturation = 22, glowing = 23, levitation = 24, luck = 25, unluck = 26, slow_falling = 27, conduit_power = 28, dolphins_grace = 29, bad_omen = 30, hero_of_the_village = 31, darkness = 32, trial_omen = 33, raid_omen = 34, wind_charged = 35, weaving = 36, oozing = 37, infested = 38, breath_of_the_nautilus = 39,
}

Variants§

§

speed = 0

§

slowness = 1

§

haste = 2

§

mining_fatigue = 3

§

strength = 4

§

instant_health = 5

§

instant_damage = 6

§

jump_boost = 7

§

nausea = 8

§

regeneration = 9

§

resistance = 10

§

fire_resistance = 11

§

water_breathing = 12

§

invisibility = 13

§

blindness = 14

§

night_vision = 15

§

hunger = 16

§

weakness = 17

§

poison = 18

§

wither = 19

§

health_boost = 20

§

absorption = 21

§

saturation = 22

§

glowing = 23

§

levitation = 24

§

luck = 25

§

unluck = 26

§

slow_falling = 27

§

conduit_power = 28

§

dolphins_grace = 29

§

bad_omen = 30

§

hero_of_the_village = 31

§

darkness = 32

§

trial_omen = 33

§

raid_omen = 34

§

wind_charged = 35

§

weaving = 36

§

oozing = 37

§

infested = 38

§

breath_of_the_nautilus = 39

Implementations§

Source§

impl mob_effect

Source

pub const fn name(self) -> &'static str

Source

pub fn parse(name: &[u8]) -> Option<Self>

Source§

impl mob_effect

Source

pub const MAX: u8 = 39u8

Source

pub const fn new(n: u8) -> Option<Self>

Source

pub const fn id(self) -> u8

Trait Implementations§

Source§

impl Clone for mob_effect

Source§

fn clone(&self) -> mob_effect

Returns a duplicate of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for mob_effect

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for mob_effect

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Display for mob_effect

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for mob_effect

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for mob_effect

Source§

fn eq(&self, other: &mob_effect) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Read<'_> for mob_effect

Source§

fn read(n: &mut &[u8]) -> Result<Self, Error>

Source§

impl Write for mob_effect

Source§

fn sz(&self) -> usize

Source§

unsafe fn write(&self, w: &mut UnsafeWriter)

Safety Read more
Source§

impl Copy for mob_effect

Source§

impl Eq for mob_effect

Source§

impl StructuralPartialEq for mob_effect

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.