#[repr(u16)]
pub enum biome {
Show 64 variants badlands = 0, bamboo_jungle = 1, basalt_deltas = 2, beach = 3, birch_forest = 4, cherry_grove = 5, cold_ocean = 6, crimson_forest = 7, dark_forest = 8, deep_cold_ocean = 9, deep_dark = 10, deep_frozen_ocean = 11, deep_lukewarm_ocean = 12, deep_ocean = 13, desert = 14, dripstone_caves = 15, end_barrens = 16, end_highlands = 17, end_midlands = 18, eroded_badlands = 19, flower_forest = 20, forest = 21, frozen_ocean = 22, frozen_peaks = 23, frozen_river = 24, grove = 25, ice_spikes = 26, jagged_peaks = 27, jungle = 28, lukewarm_ocean = 29, lush_caves = 30, mangrove_swamp = 31, meadow = 32, mushroom_fields = 33, nether_wastes = 34, ocean = 35, old_growth_birch_forest = 36, old_growth_pine_taiga = 37, old_growth_spruce_taiga = 38, plains = 39, river = 40, savanna = 41, savanna_plateau = 42, small_end_islands = 43, snowy_beach = 44, snowy_plains = 45, snowy_slopes = 46, snowy_taiga = 47, soul_sand_valley = 48, sparse_jungle = 49, stony_peaks = 50, stony_shore = 51, sunflower_plains = 52, swamp = 53, taiga = 54, the_end = 55, the_void = 56, warm_ocean = 57, warped_forest = 58, windswept_forest = 59, windswept_gravelly_hills = 60, windswept_hills = 61, windswept_savanna = 62, wooded_badlands = 63,
}

Variants§

§

badlands = 0

§

bamboo_jungle = 1

§

basalt_deltas = 2

§

beach = 3

§

birch_forest = 4

§

cherry_grove = 5

§

cold_ocean = 6

§

crimson_forest = 7

§

dark_forest = 8

§

deep_cold_ocean = 9

§

deep_dark = 10

§

deep_frozen_ocean = 11

§

deep_lukewarm_ocean = 12

§

deep_ocean = 13

§

desert = 14

§

dripstone_caves = 15

§

end_barrens = 16

§

end_highlands = 17

§

end_midlands = 18

§

eroded_badlands = 19

§

flower_forest = 20

§

forest = 21

§

frozen_ocean = 22

§

frozen_peaks = 23

§

frozen_river = 24

§

grove = 25

§

ice_spikes = 26

§

jagged_peaks = 27

§

jungle = 28

§

lukewarm_ocean = 29

§

lush_caves = 30

§

mangrove_swamp = 31

§

meadow = 32

§

mushroom_fields = 33

§

nether_wastes = 34

§

ocean = 35

§

old_growth_birch_forest = 36

§

old_growth_pine_taiga = 37

§

old_growth_spruce_taiga = 38

§

plains = 39

§

river = 40

§

savanna = 41

§

savanna_plateau = 42

§

small_end_islands = 43

§

snowy_beach = 44

§

snowy_plains = 45

§

snowy_slopes = 46

§

snowy_taiga = 47

§

soul_sand_valley = 48

§

sparse_jungle = 49

§

stony_peaks = 50

§

stony_shore = 51

§

sunflower_plains = 52

§

swamp = 53

§

taiga = 54

§

the_end = 55

§

the_void = 56

§

warm_ocean = 57

§

warped_forest = 58

§

windswept_forest = 59

§

windswept_gravelly_hills = 60

§

windswept_hills = 61

§

windswept_savanna = 62

§

wooded_badlands = 63

Implementations§

source§

impl biome

source

pub const fn id(self) -> u16

source

pub const fn new(x: u16) -> Self

source§

impl biome

source

pub const MAX: usize = 63usize

source§

impl biome

source

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

source

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

Trait Implementations§

source§

impl Clone for biome

source§

fn clone(&self) -> biome

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl Debug for biome

source§

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

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

impl Default for biome

source§

fn default() -> Self

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

impl Display for biome

source§

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

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

impl Hash for biome

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 biome

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Write for biome

source§

fn len(&self) -> usize

source§

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

source§

impl Copy for biome

source§

impl Eq for biome

source§

impl StructuralEq for biome

source§

impl StructuralPartialEq for biome

Auto Trait Implementations§

§

impl RefUnwindSafe for biome

§

impl Send for biome

§

impl Sync for biome

§

impl Unpin for biome

§

impl UnwindSafe for biome

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> 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> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

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

§

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>,

§

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.