Enum fastanvil::biome::Biome

source ·
#[repr(i32)]
pub enum Biome {
Show 102 variants Ocean = 0, Forest = 4, River = 7, FrozenOcean = 10, FrozenRiver = 11, Beach = 16, DeepOcean = 24, StoneShore = 25, SnowyBeach = 26, WarmOcean = 44, LukewarmOcean = 45, ColdOcean = 46, DeepWarmOcean = 47, DeepLukewarmOcean = 48, DeepColdOcean = 49, DeepFrozenOcean = 50, WoodedHills = 18, FlowerForest = 132, BirchForest = 27, BirchForestHills = 28, TallBirchForest = 155, TallBirchHills = 156, DarkForest = 29, DarkForestHills = 157, Jungle = 21, JungleHills = 22, ModifiedJungle = 149, JungleEdge = 23, ModifiedJungleEdge = 151, BambooJungle = 168, BambooJungleHills = 169, Taiga = 5, TaigaHills = 19, TaigaMountains = 133, SnowyTaiga = 30, SnowyTaigaHills = 31, SnowyTaigaMountains = 158, GiantTreeTaiga = 32, GiantTreeTaigaHills = 33, GiantSpruceTaiga = 160, GiantSpruceTaigaHills = 161, MushroomFields = 14, MushroomFieldShore = 15, Swamp = 6, SwampHills = 134, Savanna = 35, SavannaPlateau = 36, ShatteredSavanna = 163, ShatteredSavannaPlateau = 164, Plains = 1, SunflowerPlains = 129, Desert = 2, DesertHills = 17, DesertLakes = 130, SnowyTundra = 12, SnowyMountains = 13, IceSpikes = 140, Mountains = 3, WoodedMountains = 34, GravellyMountains = 131, ModifiedGravellyMountains = 162, MountainEdge = 20, Badlands = 37, BadlandsPlateau = 39, ModifiedBadlandsPlateau = 167, WoodedBadlandsPlateau = 38, ModifiedWoodedBadlandsPlateau = 166, ErodedBadlands = 165, Nether = 8, TheEnd = 9, SmallEndIslands = 40, EndMidlands = 41, EndHighlands = 42, EndBarrens = 43, SoulSandValley = 170, CrimsonForest = 171, WarpedForest = 172, TheVoid = 127, BasaltDeltas = 173, DripstoneCaves = 174, FrozenPeaks = 175, Grove = 176, JaggedPeaks = 177, LushCaves = 178, Meadow = 179, NetherWastes = 180, OldGrowthBirchForest = 181, OldGrowthPineTaiga = 182, OldGrowthSpruceTaiga = 183, SnowyPlains = 184, SnowySlopes = 185, SparseJungle = 186, StonyPeaks = 187, StonyShore = 188, WindsweptForest = 189, WindsweptGravellyHills = 190, WindsweptHills = 191, WindsweptSavanna = 192, WoodedBadlands = 193, MangroveSwamp = 194, DeepDark = 195, Unknown = 196,
}

Variants§

§

Ocean = 0

§

Forest = 4

§

River = 7

§

FrozenOcean = 10

§

FrozenRiver = 11

§

Beach = 16

§

DeepOcean = 24

§

StoneShore = 25

§

SnowyBeach = 26

§

WarmOcean = 44

§

LukewarmOcean = 45

§

ColdOcean = 46

§

DeepWarmOcean = 47

§

DeepLukewarmOcean = 48

§

DeepColdOcean = 49

§

DeepFrozenOcean = 50

§

WoodedHills = 18

§

FlowerForest = 132

§

BirchForest = 27

§

BirchForestHills = 28

§

TallBirchForest = 155

§

TallBirchHills = 156

§

DarkForest = 29

§

DarkForestHills = 157

§

Jungle = 21

§

JungleHills = 22

§

ModifiedJungle = 149

§

JungleEdge = 23

§

ModifiedJungleEdge = 151

§

BambooJungle = 168

§

BambooJungleHills = 169

§

Taiga = 5

§

TaigaHills = 19

§

TaigaMountains = 133

§

SnowyTaiga = 30

§

SnowyTaigaHills = 31

§

SnowyTaigaMountains = 158

§

GiantTreeTaiga = 32

§

GiantTreeTaigaHills = 33

§

GiantSpruceTaiga = 160

§

GiantSpruceTaigaHills = 161

§

MushroomFields = 14

§

MushroomFieldShore = 15

§

Swamp = 6

§

SwampHills = 134

§

Savanna = 35

§

SavannaPlateau = 36

§

ShatteredSavanna = 163

§

ShatteredSavannaPlateau = 164

§

Plains = 1

§

SunflowerPlains = 129

§

Desert = 2

§

DesertHills = 17

§

DesertLakes = 130

§

SnowyTundra = 12

§

SnowyMountains = 13

§

IceSpikes = 140

§

Mountains = 3

§

WoodedMountains = 34

§

GravellyMountains = 131

§

ModifiedGravellyMountains = 162

§

MountainEdge = 20

§

Badlands = 37

§

BadlandsPlateau = 39

§

ModifiedBadlandsPlateau = 167

§

WoodedBadlandsPlateau = 38

§

ModifiedWoodedBadlandsPlateau = 166

§

ErodedBadlands = 165

§

Nether = 8

§

TheEnd = 9

§

SmallEndIslands = 40

§

EndMidlands = 41

§

EndHighlands = 42

§

EndBarrens = 43

§

SoulSandValley = 170

§

CrimsonForest = 171

§

WarpedForest = 172

§

TheVoid = 127

§

BasaltDeltas = 173

§

DripstoneCaves = 174

§

FrozenPeaks = 175

§

Grove = 176

§

JaggedPeaks = 177

§

LushCaves = 178

§

Meadow = 179

§

NetherWastes = 180

§

OldGrowthBirchForest = 181

§

OldGrowthPineTaiga = 182

§

OldGrowthSpruceTaiga = 183

§

SnowyPlains = 184

§

SnowySlopes = 185

§

SparseJungle = 186

§

StonyPeaks = 187

§

StonyShore = 188

§

WindsweptForest = 189

§

WindsweptGravellyHills = 190

§

WindsweptHills = 191

§

WindsweptSavanna = 192

§

WoodedBadlands = 193

§

MangroveSwamp = 194

§

DeepDark = 195

§

Unknown = 196

Implementations§

source§

impl Biome

source

pub fn climate(self) -> Climate

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<'de> Deserialize<'de> for Biome

source§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<Biome> for i32

source§

fn from(enum_value: Biome) -> Self

Converts to this type from the input type.
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 TryFrom<i32> for Biome

§

type Error = TryFromPrimitiveError<Biome>

The type returned in the event of a conversion error.
source§

fn try_from(number: i32) -> Result<Self, TryFromPrimitiveError<Self>>

Performs the conversion.
source§

impl TryFromPrimitive for Biome

§

type Primitive = i32

source§

const NAME: &'static str = "Biome"

source§

fn try_from_primitive( number: Self::Primitive ) -> Result<Self, TryFromPrimitiveError<Self>>

source§

impl Copy for Biome

source§

impl Eq 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, 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.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,