environment_attribute

Enum environment_attribute 

Source
#[repr(u8)]
pub enum environment_attribute {
Show 45 variants visual_fog_color = 0, visual_fog_start_distance = 1, visual_fog_end_distance = 2, visual_sky_fog_end_distance = 3, visual_cloud_fog_end_distance = 4, visual_water_fog_color = 5, visual_water_fog_start_distance = 6, visual_water_fog_end_distance = 7, visual_sky_color = 8, visual_sunrise_sunset_color = 9, visual_cloud_color = 10, visual_cloud_height = 11, visual_sun_angle = 12, visual_moon_angle = 13, visual_star_angle = 14, visual_moon_phase = 15, visual_star_brightness = 16, visual_sky_light_color = 17, visual_sky_light_factor = 18, visual_default_dripstone_particle = 19, visual_ambient_particles = 20, audio_background_music = 21, audio_music_volume = 22, audio_ambient_sounds = 23, audio_firefly_bush_sounds = 24, gameplay_sky_light_level = 25, gameplay_can_start_raid = 26, gameplay_water_evaporates = 27, gameplay_bed_rule = 28, gameplay_respawn_anchor_works = 29, gameplay_nether_portal_spawns_piglin = 30, gameplay_fast_lava = 31, gameplay_increased_fire_burnout = 32, gameplay_eyeblossom_open = 33, gameplay_turtle_egg_hatch_chance = 34, gameplay_piglins_zombify = 35, gameplay_snow_golem_melts = 36, gameplay_creaking_active = 37, gameplay_surface_slime_spawn_chance = 38, gameplay_cat_waking_up_gift_chance = 39, gameplay_bees_stay_in_hive = 40, gameplay_monsters_burn = 41, gameplay_can_pillager_patrol_spawn = 42, gameplay_villager_activity = 43, gameplay_baby_villager_activity = 44,
}

Variants§

§

visual_fog_color = 0

§

visual_fog_start_distance = 1

§

visual_fog_end_distance = 2

§

visual_sky_fog_end_distance = 3

§

visual_cloud_fog_end_distance = 4

§

visual_water_fog_color = 5

§

visual_water_fog_start_distance = 6

§

visual_water_fog_end_distance = 7

§

visual_sky_color = 8

§

visual_sunrise_sunset_color = 9

§

visual_cloud_color = 10

§

visual_cloud_height = 11

§

visual_sun_angle = 12

§

visual_moon_angle = 13

§

visual_star_angle = 14

§

visual_moon_phase = 15

§

visual_star_brightness = 16

§

visual_sky_light_color = 17

§

visual_sky_light_factor = 18

§

visual_default_dripstone_particle = 19

§

visual_ambient_particles = 20

§

audio_background_music = 21

§

audio_music_volume = 22

§

audio_ambient_sounds = 23

§

audio_firefly_bush_sounds = 24

§

gameplay_sky_light_level = 25

§

gameplay_can_start_raid = 26

§

gameplay_water_evaporates = 27

§

gameplay_bed_rule = 28

§

gameplay_respawn_anchor_works = 29

§

gameplay_nether_portal_spawns_piglin = 30

§

gameplay_fast_lava = 31

§

gameplay_increased_fire_burnout = 32

§

gameplay_eyeblossom_open = 33

§

gameplay_turtle_egg_hatch_chance = 34

§

gameplay_piglins_zombify = 35

§

gameplay_snow_golem_melts = 36

§

gameplay_creaking_active = 37

§

gameplay_surface_slime_spawn_chance = 38

§

gameplay_cat_waking_up_gift_chance = 39

§

gameplay_bees_stay_in_hive = 40

§

gameplay_monsters_burn = 41

§

gameplay_can_pillager_patrol_spawn = 42

§

gameplay_villager_activity = 43

§

gameplay_baby_villager_activity = 44

Implementations§

Source§

impl environment_attribute

Source

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

Source

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

Source§

impl environment_attribute

Source

pub const MAX: u8 = 44u8

Source

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

Source

pub const fn id(self) -> u8

Trait Implementations§

Source§

impl Clone for environment_attribute

Source§

fn clone(&self) -> environment_attribute

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 environment_attribute

Source§

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

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

impl Default for environment_attribute

Source§

fn default() -> Self

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

impl Display for environment_attribute

Source§

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

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

impl Hash for environment_attribute

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 environment_attribute

Source§

fn eq(&self, other: &environment_attribute) -> 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 environment_attribute

Source§

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

Source§

impl Write for environment_attribute

Source§

fn sz(&self) -> usize

Source§

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

Safety Read more
Source§

impl Copy for environment_attribute

Source§

impl Eq for environment_attribute

Source§

impl StructuralPartialEq for environment_attribute

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.