Skip to main content

environment_attribute

Enum environment_attribute 

Source
#[repr(u8)]
pub enum environment_attribute {
Show 48 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_block_light_tint = 17, visual_sky_light_color = 18, visual_sky_light_factor = 19, visual_night_vision_color = 20, visual_ambient_light_color = 21, visual_default_dripstone_particle = 22, visual_ambient_particles = 23, audio_background_music = 24, audio_music_volume = 25, audio_ambient_sounds = 26, audio_firefly_bush_sounds = 27, gameplay_sky_light_level = 28, gameplay_can_start_raid = 29, gameplay_water_evaporates = 30, gameplay_bed_rule = 31, gameplay_respawn_anchor_works = 32, gameplay_nether_portal_spawns_piglin = 33, gameplay_fast_lava = 34, gameplay_increased_fire_burnout = 35, gameplay_eyeblossom_open = 36, gameplay_turtle_egg_hatch_chance = 37, gameplay_piglins_zombify = 38, gameplay_snow_golem_melts = 39, gameplay_creaking_active = 40, gameplay_surface_slime_spawn_chance = 41, gameplay_cat_waking_up_gift_chance = 42, gameplay_bees_stay_in_hive = 43, gameplay_monsters_burn = 44, gameplay_can_pillager_patrol_spawn = 45, gameplay_villager_activity = 46, gameplay_baby_villager_activity = 47,
}

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_block_light_tint = 17

§

visual_sky_light_color = 18

§

visual_sky_light_factor = 19

§

visual_night_vision_color = 20

§

visual_ambient_light_color = 21

§

visual_default_dripstone_particle = 22

§

visual_ambient_particles = 23

§

audio_background_music = 24

§

audio_music_volume = 25

§

audio_ambient_sounds = 26

§

audio_firefly_bush_sounds = 27

§

gameplay_sky_light_level = 28

§

gameplay_can_start_raid = 29

§

gameplay_water_evaporates = 30

§

gameplay_bed_rule = 31

§

gameplay_respawn_anchor_works = 32

§

gameplay_nether_portal_spawns_piglin = 33

§

gameplay_fast_lava = 34

§

gameplay_increased_fire_burnout = 35

§

gameplay_eyeblossom_open = 36

§

gameplay_turtle_egg_hatch_chance = 37

§

gameplay_piglins_zombify = 38

§

gameplay_snow_golem_melts = 39

§

gameplay_creaking_active = 40

§

gameplay_surface_slime_spawn_chance = 41

§

gameplay_cat_waking_up_gift_chance = 42

§

gameplay_bees_stay_in_hive = 43

§

gameplay_monsters_burn = 44

§

gameplay_can_pillager_patrol_spawn = 45

§

gameplay_villager_activity = 46

§

gameplay_baby_villager_activity = 47

Implementations§

Source§

impl environment_attribute

Source

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

Source§

impl environment_attribute

Source

pub const MAX: u8 = 47

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 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for environment_attribute

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 Eq for environment_attribute

Source§

impl FromStr for environment_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 environment_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 environment_attribute

Source§

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

Source§

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

Source§

impl StructuralPartialEq for environment_attribute

Source§

impl Write for environment_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.