Struct minedmap_resource::Biome
source · pub struct Biome {
pub temp: i8,
pub downfall: i8,
pub water_color: Option<Color>,
pub foliage_color: Option<Color>,
pub grass_color: Option<Color>,
pub grass_color_modifier: Option<BiomeGrassColorModifier>,
}Expand description
A biome specification
A Biome contains all information about a biome necessary to compute a block color given a block type and depth
Fields§
§temp: i8Temperature value
For more efficient storage, the temperature is stored as an integer after mutiplying the raw value by 20
downfall: i8Downfall value
For more efficient storage, the downfall is stored as an integer after mutiplying the raw value by 20
water_color: Option<Color>Water color override
foliage_color: Option<Color>Foliage color override
grass_color: Option<Color>Grass color override
grass_color_modifier: Option<BiomeGrassColorModifier>Grass color modifier
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Biome
impl<'de> Deserialize<'de> for Biome
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 PartialEq for Biome
impl PartialEq for Biome
impl Copy for Biome
impl Eq for Biome
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> 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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)