Skip to main content

attribute

Enum attribute 

Source
#[repr(u8)]
pub enum attribute {
Show 40 variants air_drag_modifier = 0, armor = 1, armor_toughness = 2, attack_damage = 3, attack_knockback = 4, attack_speed = 5, below_name_distance = 6, block_break_speed = 7, block_interaction_range = 8, bounciness = 9, burning_time = 10, camera_distance = 11, explosion_knockback_resistance = 12, entity_interaction_range = 13, fall_damage_multiplier = 14, flying_speed = 15, follow_range = 16, friction_modifier = 17, gravity = 18, jump_strength = 19, knockback_resistance = 20, luck = 21, max_absorption = 22, max_health = 23, mining_efficiency = 24, movement_efficiency = 25, movement_speed = 26, name_tag_distance = 27, oxygen_bonus = 28, safe_fall_distance = 29, scale = 30, sneaking_speed = 31, spawn_reinforcements = 32, step_height = 33, submerged_mining_speed = 34, sweeping_damage_ratio = 35, tempt_range = 36, water_movement_efficiency = 37, waypoint_transmit_range = 38, waypoint_receive_range = 39,
}

Variants§

§

air_drag_modifier = 0

§

armor = 1

§

armor_toughness = 2

§

attack_damage = 3

§

attack_knockback = 4

§

attack_speed = 5

§

below_name_distance = 6

§

block_break_speed = 7

§

block_interaction_range = 8

§

bounciness = 9

§

burning_time = 10

§

camera_distance = 11

§

explosion_knockback_resistance = 12

§

entity_interaction_range = 13

§

fall_damage_multiplier = 14

§

flying_speed = 15

§

follow_range = 16

§

friction_modifier = 17

§

gravity = 18

§

jump_strength = 19

§

knockback_resistance = 20

§

luck = 21

§

max_absorption = 22

§

max_health = 23

§

mining_efficiency = 24

§

movement_efficiency = 25

§

movement_speed = 26

§

name_tag_distance = 27

§

oxygen_bonus = 28

§

safe_fall_distance = 29

§

scale = 30

§

sneaking_speed = 31

§

spawn_reinforcements = 32

§

step_height = 33

§

submerged_mining_speed = 34

§

sweeping_damage_ratio = 35

§

tempt_range = 36

§

water_movement_efficiency = 37

§

waypoint_transmit_range = 38

§

waypoint_receive_range = 39

Implementations§

Source§

impl attribute

Source

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

Source§

impl attribute

Source

pub const MAX: u8 = 39

Source

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

Source

pub const fn id(self) -> u8

Trait Implementations§

Source§

impl Clone for attribute

Source§

fn clone(&self) -> attribute

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for attribute

Source§

impl Debug for attribute

Source§

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

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

impl Default for attribute

Source§

fn default() -> Self

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

impl Display for attribute

Source§

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

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

impl Eq for attribute

Source§

impl FromStr for attribute

Source§

type Err = Error

The associated error which can be returned from parsing.
Source§

fn from_str(n: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for attribute

Source§

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

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

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 attribute

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl Read<'_> for attribute

Source§

fn read(n: &mut Reader<'_>) -> Result<Self, Error>

Source§

impl StructuralPartialEq for attribute

Source§

impl Write for attribute

Source§

fn len_s(&self) -> usize

Source§

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

Safety Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

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

Source§

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
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

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

Source§

type Error = Infallible

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

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

Performs the conversion.
Source§

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

Source§

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

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

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

Performs the conversion.