Struct BiomeProperties
pub struct BiomeProperties {
pub temperature: f32,
pub downfall: f32,
pub has_precipitation: bool,
pub frozen: bool,
}Expand description
A biome’s climate, as its worldgen file declares it (Biome.ClimateSettings):
what level_biome_properties reads. The temperature is the biome’s base one; the
height and frozen-ocean adjustments of Biome.getHeightAdjustedTemperature are not applied.
Fields§
§temperature: f32temperature: the base temperature.
downfall: f32downfall.
has_precipitation: boolhas_precipitation: whether it rains or snows here at all.
frozen: booltemperature_modifier: frozen (the frozen oceans).
Trait Implementations§
§impl Clone for BiomeProperties
impl Clone for BiomeProperties
§fn clone(&self) -> BiomeProperties
fn clone(&self) -> BiomeProperties
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 moreimpl Copy for BiomeProperties
§impl Debug for BiomeProperties
impl Debug for BiomeProperties
§impl PartialEq for BiomeProperties
impl PartialEq for BiomeProperties
impl StructuralPartialEq for BiomeProperties
Auto Trait Implementations§
impl Freeze for BiomeProperties
impl RefUnwindSafe for BiomeProperties
impl Send for BiomeProperties
impl Sync for BiomeProperties
impl Unpin for BiomeProperties
impl UnsafeUnpin for BiomeProperties
impl UnwindSafe for BiomeProperties
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