Struct BiomePoint
pub struct BiomePoint {
pub biome: String,
pub temperature: (f32, f32),
pub humidity: (f32, f32),
pub continentalness: (f32, f32),
pub erosion: (f32, f32),
pub depth: (f32, f32),
pub weirdness: (f32, f32),
pub offset: f32,
}Expand description
Where one biome sits in a multi-noise biome source: the climate it is chosen for, as
Climate.ParameterPoint. Every interval is (min, max) inside -2 to 2, with min not above
max; a single value is (v, v). The biome nearest to the level’s climate at a position wins,
and offset (0 to 1) makes this one count as farther away.
Fields§
§biome: StringThe biome’s id (mymod:glowing_forest, or a vanilla or data pack biome’s).
temperature: (f32, f32)temperature, -2 to 2.
humidity: (f32, f32)humidity, -2 to 2.
continentalness: (f32, f32)continentalness, -2 to 2: low is ocean, high is inland.
erosion: (f32, f32)erosion, -2 to 2.
depth: (f32, f32)depth, -2 to 2: 0 is the surface and above 1 is underground.
weirdness: (f32, f32)weirdness, -2 to 2.
offset: f32offset, 0 to 1.
Trait Implementations§
§impl Clone for BiomePoint
impl Clone for BiomePoint
§fn clone(&self) -> BiomePoint
fn clone(&self) -> BiomePoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for BiomePoint
impl Debug for BiomePoint
§impl PartialEq for BiomePoint
impl PartialEq for BiomePoint
impl StructuralPartialEq for BiomePoint
Auto Trait Implementations§
impl Freeze for BiomePoint
impl RefUnwindSafe for BiomePoint
impl Send for BiomePoint
impl Sync for BiomePoint
impl Unpin for BiomePoint
impl UnsafeUnpin for BiomePoint
impl UnwindSafe for BiomePoint
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