Enum minecraft_data::biome

source ·
#[repr(u8)]
pub enum biome {
Show 174 variants ocean = 0, plains = 1, desert = 2, mountains = 3, forest = 4, taiga = 5, swamp = 6, river = 7, nether_wastes = 8, the_end = 9, frozen_ocean = 10, frozen_river = 11, snowy_tundra = 12, snowy_mountains = 13, mushroom_fields = 14, mushroom_field_shore = 15, beach = 16, desert_hills = 17, wooded_hills = 18, taiga_hills = 19, mountain_edge = 20, jungle = 21, jungle_hills = 22, jungle_edge = 23, deep_ocean = 24, stone_shore = 25, snowy_beach = 26, birch_forest = 27, birch_forest_hills = 28, dark_forest = 29, snowy_taiga = 30, snowy_taiga_hills = 31, giant_tree_taiga = 32, giant_tree_taiga_hills = 33, wooded_mountains = 34, savanna = 35, savanna_plateau = 36, badlands = 37, wooded_badlands_plateau = 38, badlands_plateau = 39, small_end_islands = 40, end_midlands = 41, end_highlands = 42, end_barrens = 43, warm_ocean = 44, lukewarm_ocean = 45, cold_ocean = 46, deep_warm_ocean = 47, deep_lukewarm_ocean = 48, deep_cold_ocean = 49, deep_frozen_ocean = 50, invalid_0 = 51, invalid_1 = 52, invalid_2 = 53, invalid_3 = 54, invalid_4 = 55, invalid_5 = 56, invalid_6 = 57, invalid_7 = 58, invalid_8 = 59, invalid_9 = 60, invalid_10 = 61, invalid_11 = 62, invalid_12 = 63, invalid_13 = 64, invalid_14 = 65, invalid_15 = 66, invalid_16 = 67, invalid_17 = 68, invalid_18 = 69, invalid_19 = 70, invalid_20 = 71, invalid_21 = 72, invalid_22 = 73, invalid_23 = 74, invalid_24 = 75, invalid_25 = 76, invalid_26 = 77, invalid_27 = 78, invalid_28 = 79, invalid_29 = 80, invalid_30 = 81, invalid_31 = 82, invalid_32 = 83, invalid_33 = 84, invalid_34 = 85, invalid_35 = 86, invalid_36 = 87, invalid_37 = 88, invalid_38 = 89, invalid_39 = 90, invalid_40 = 91, invalid_41 = 92, invalid_42 = 93, invalid_43 = 94, invalid_44 = 95, invalid_45 = 96, invalid_46 = 97, invalid_47 = 98, invalid_48 = 99, invalid_49 = 100, invalid_50 = 101, invalid_51 = 102, invalid_52 = 103, invalid_53 = 104, invalid_54 = 105, invalid_55 = 106, invalid_56 = 107, invalid_57 = 108, invalid_58 = 109, invalid_59 = 110, invalid_60 = 111, invalid_61 = 112, invalid_62 = 113, invalid_63 = 114, invalid_64 = 115, invalid_65 = 116, invalid_66 = 117, invalid_67 = 118, invalid_68 = 119, invalid_69 = 120, invalid_70 = 121, invalid_71 = 122, invalid_72 = 123, invalid_73 = 124, invalid_74 = 125, invalid_75 = 126, the_void = 127, invalid_76 = 128, sunflower_plains = 129, desert_lakes = 130, gravelly_mountains = 131, flower_forest = 132, taiga_mountains = 133, swamp_hills = 134, invalid_77 = 135, invalid_78 = 136, invalid_79 = 137, invalid_80 = 138, invalid_81 = 139, ice_spikes = 140, invalid_82 = 141, invalid_83 = 142, invalid_84 = 143, invalid_85 = 144, invalid_86 = 145, invalid_87 = 146, invalid_88 = 147, invalid_89 = 148, modified_jungle = 149, invalid_90 = 150, modified_jungle_edge = 151, invalid_91 = 152, invalid_92 = 153, invalid_93 = 154, tall_birch_forest = 155, tall_birch_hills = 156, dark_forest_hills = 157, snowy_taiga_mountains = 158, invalid_94 = 159, giant_spruce_taiga = 160, giant_spruce_taiga_hills = 161, modified_gravelly_mountains = 162, shattered_savanna = 163, shattered_savanna_plateau = 164, eroded_badlands = 165, modified_wooded_badlands_plateau = 166, modified_badlands_plateau = 167, bamboo_jungle = 168, bamboo_jungle_hills = 169, soul_sand_valley = 170, crimson_forest = 171, warped_forest = 172, basalt_deltas = 173,
}

Variants§

§

ocean = 0

§

plains = 1

§

desert = 2

§

mountains = 3

§

forest = 4

§

taiga = 5

§

swamp = 6

§

river = 7

§

nether_wastes = 8

§

the_end = 9

§

frozen_ocean = 10

§

frozen_river = 11

§

snowy_tundra = 12

§

snowy_mountains = 13

§

mushroom_fields = 14

§

mushroom_field_shore = 15

§

beach = 16

§

desert_hills = 17

§

wooded_hills = 18

§

taiga_hills = 19

§

mountain_edge = 20

§

jungle = 21

§

jungle_hills = 22

§

jungle_edge = 23

§

deep_ocean = 24

§

stone_shore = 25

§

snowy_beach = 26

§

birch_forest = 27

§

birch_forest_hills = 28

§

dark_forest = 29

§

snowy_taiga = 30

§

snowy_taiga_hills = 31

§

giant_tree_taiga = 32

§

giant_tree_taiga_hills = 33

§

wooded_mountains = 34

§

savanna = 35

§

savanna_plateau = 36

§

badlands = 37

§

wooded_badlands_plateau = 38

§

badlands_plateau = 39

§

small_end_islands = 40

§

end_midlands = 41

§

end_highlands = 42

§

end_barrens = 43

§

warm_ocean = 44

§

lukewarm_ocean = 45

§

cold_ocean = 46

§

deep_warm_ocean = 47

§

deep_lukewarm_ocean = 48

§

deep_cold_ocean = 49

§

deep_frozen_ocean = 50

§

invalid_0 = 51

§

invalid_1 = 52

§

invalid_2 = 53

§

invalid_3 = 54

§

invalid_4 = 55

§

invalid_5 = 56

§

invalid_6 = 57

§

invalid_7 = 58

§

invalid_8 = 59

§

invalid_9 = 60

§

invalid_10 = 61

§

invalid_11 = 62

§

invalid_12 = 63

§

invalid_13 = 64

§

invalid_14 = 65

§

invalid_15 = 66

§

invalid_16 = 67

§

invalid_17 = 68

§

invalid_18 = 69

§

invalid_19 = 70

§

invalid_20 = 71

§

invalid_21 = 72

§

invalid_22 = 73

§

invalid_23 = 74

§

invalid_24 = 75

§

invalid_25 = 76

§

invalid_26 = 77

§

invalid_27 = 78

§

invalid_28 = 79

§

invalid_29 = 80

§

invalid_30 = 81

§

invalid_31 = 82

§

invalid_32 = 83

§

invalid_33 = 84

§

invalid_34 = 85

§

invalid_35 = 86

§

invalid_36 = 87

§

invalid_37 = 88

§

invalid_38 = 89

§

invalid_39 = 90

§

invalid_40 = 91

§

invalid_41 = 92

§

invalid_42 = 93

§

invalid_43 = 94

§

invalid_44 = 95

§

invalid_45 = 96

§

invalid_46 = 97

§

invalid_47 = 98

§

invalid_48 = 99

§

invalid_49 = 100

§

invalid_50 = 101

§

invalid_51 = 102

§

invalid_52 = 103

§

invalid_53 = 104

§

invalid_54 = 105

§

invalid_55 = 106

§

invalid_56 = 107

§

invalid_57 = 108

§

invalid_58 = 109

§

invalid_59 = 110

§

invalid_60 = 111

§

invalid_61 = 112

§

invalid_62 = 113

§

invalid_63 = 114

§

invalid_64 = 115

§

invalid_65 = 116

§

invalid_66 = 117

§

invalid_67 = 118

§

invalid_68 = 119

§

invalid_69 = 120

§

invalid_70 = 121

§

invalid_71 = 122

§

invalid_72 = 123

§

invalid_73 = 124

§

invalid_74 = 125

§

invalid_75 = 126

§

the_void = 127

§

invalid_76 = 128

§

sunflower_plains = 129

§

desert_lakes = 130

§

gravelly_mountains = 131

§

flower_forest = 132

§

taiga_mountains = 133

§

swamp_hills = 134

§

invalid_77 = 135

§

invalid_78 = 136

§

invalid_79 = 137

§

invalid_80 = 138

§

invalid_81 = 139

§

ice_spikes = 140

§

invalid_82 = 141

§

invalid_83 = 142

§

invalid_84 = 143

§

invalid_85 = 144

§

invalid_86 = 145

§

invalid_87 = 146

§

invalid_88 = 147

§

invalid_89 = 148

§

modified_jungle = 149

§

invalid_90 = 150

§

modified_jungle_edge = 151

§

invalid_91 = 152

§

invalid_92 = 153

§

invalid_93 = 154

§

tall_birch_forest = 155

§

tall_birch_hills = 156

§

dark_forest_hills = 157

§

snowy_taiga_mountains = 158

§

invalid_94 = 159

§

giant_spruce_taiga = 160

§

giant_spruce_taiga_hills = 161

§

modified_gravelly_mountains = 162

§

shattered_savanna = 163

§

shattered_savanna_plateau = 164

§

eroded_badlands = 165

§

modified_wooded_badlands_plateau = 166

§

modified_badlands_plateau = 167

§

bamboo_jungle = 168

§

bamboo_jungle_hills = 169

§

soul_sand_valley = 170

§

crimson_forest = 171

§

warped_forest = 172

§

basalt_deltas = 173

Implementations§

source§

impl biome

source

pub const fn id(self) -> u8

source

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

source§

impl biome

source

pub const MAX: usize = 173usize

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 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 StructuralPartialEq for biome

Auto Trait Implementations§

§

impl Freeze for biome

§

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.