#[non_exhaustive]#[repr(i32)]pub enum BiomeID {
Show 95 variants
none = -1,
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,
seasonal_forest = 51,
rainforest = 52,
shrubland = 53,
the_void = 127,
sunflower_plains = 129,
desert_lakes = 130,
gravelly_mountains = 131,
flower_forest = 132,
taiga_mountains = 133,
swamp_hills = 134,
ice_spikes = 140,
modified_jungle = 149,
modified_jungle_edge = 151,
tall_birch_forest = 155,
tall_birch_hills = 156,
dark_forest_hills = 157,
snowy_taiga_mountains = 158,
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,
dripstone_caves = 174,
lush_caves = 175,
meadow = 177,
grove = 178,
snowy_slopes = 179,
jagged_peaks = 180,
frozen_peaks = 181,
stony_peaks = 182,
deep_dark = 183,
mangrove_swamp = 184,
cherry_grove = 185,
pale_garden = 186,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
none = -1
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
seasonal_forest = 51
rainforest = 52
shrubland = 53
the_void = 127
sunflower_plains = 129
desert_lakes = 130
gravelly_mountains = 131
flower_forest = 132
taiga_mountains = 133
swamp_hills = 134
ice_spikes = 140
modified_jungle = 149
modified_jungle_edge = 151
tall_birch_forest = 155
tall_birch_hills = 156
dark_forest_hills = 157
snowy_taiga_mountains = 158
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
dripstone_caves = 174
lush_caves = 175
meadow = 177
grove = 178
snowy_slopes = 179
jagged_peaks = 180
frozen_peaks = 181
stony_peaks = 182
deep_dark = 183
mangrove_swamp = 184
cherry_grove = 185
pale_garden = 186
Implementations§
Source§impl BiomeID
impl BiomeID
Sourcepub fn to_mc_biome_str(&self, version: MCVersion) -> &'static str
pub fn to_mc_biome_str(&self, version: MCVersion) -> &'static str
Converts the enum to its string representation in the specified version.
We can’t implement display or fromstr for this, since some biomeids just go renamed in 1.18, and as such, formatting differs per minecraft version.
Trait Implementations§
Source§impl FromPrimitive for BiomeID
impl FromPrimitive for BiomeID
Source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
Converts an
i64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
Converts an
u64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
Converts an
isize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
Converts an
i8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
Converts an
i16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
Converts an
i32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
Converts an
i128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
Converts a
usize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
Converts an
u8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
Converts an
u16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
Converts an
u32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
Converts an
u128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§impl Ord for BiomeID
impl Ord for BiomeID
Source§impl PartialOrd for BiomeID
impl PartialOrd for BiomeID
Source§impl ToPrimitive for BiomeID
impl ToPrimitive for BiomeID
Source§fn to_i64(&self) -> Option<i64>
fn to_i64(&self) -> Option<i64>
Converts the value of
self to an i64. If the value cannot be
represented by an i64, then None is returned.Source§fn to_u64(&self) -> Option<u64>
fn to_u64(&self) -> Option<u64>
Converts the value of
self to a u64. If the value cannot be
represented by a u64, then None is returned.Source§fn to_isize(&self) -> Option<isize>
fn to_isize(&self) -> Option<isize>
Converts the value of
self to an isize. If the value cannot be
represented by an isize, then None is returned.Source§fn to_i8(&self) -> Option<i8>
fn to_i8(&self) -> Option<i8>
Converts the value of
self to an i8. If the value cannot be
represented by an i8, then None is returned.Source§fn to_i16(&self) -> Option<i16>
fn to_i16(&self) -> Option<i16>
Converts the value of
self to an i16. If the value cannot be
represented by an i16, then None is returned.Source§fn to_i32(&self) -> Option<i32>
fn to_i32(&self) -> Option<i32>
Converts the value of
self to an i32. If the value cannot be
represented by an i32, then None is returned.Source§fn to_i128(&self) -> Option<i128>
fn to_i128(&self) -> Option<i128>
Converts the value of
self to an i128. If the value cannot be
represented by an i128 (i64 under the default implementation), then
None is returned. Read moreSource§fn to_usize(&self) -> Option<usize>
fn to_usize(&self) -> Option<usize>
Converts the value of
self to a usize. If the value cannot be
represented by a usize, then None is returned.Source§fn to_u8(&self) -> Option<u8>
fn to_u8(&self) -> Option<u8>
Converts the value of
self to a u8. If the value cannot be
represented by a u8, then None is returned.Source§fn to_u16(&self) -> Option<u16>
fn to_u16(&self) -> Option<u16>
Converts the value of
self to a u16. If the value cannot be
represented by a u16, then None is returned.Source§fn to_u32(&self) -> Option<u32>
fn to_u32(&self) -> Option<u32>
Converts the value of
self to a u32. If the value cannot be
represented by a u32, then None is returned.Source§fn to_u128(&self) -> Option<u128>
fn to_u128(&self) -> Option<u128>
Converts the value of
self to a u128. If the value cannot be
represented by a u128 (u64 under the default implementation), then
None is returned. Read moreimpl Copy for BiomeID
impl Eq for BiomeID
impl StructuralPartialEq for BiomeID
Auto Trait Implementations§
impl Freeze for BiomeID
impl RefUnwindSafe for BiomeID
impl Send for BiomeID
impl Sync for BiomeID
impl Unpin for BiomeID
impl UnwindSafe for BiomeID
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more