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: i8
Temperature value
For more efficient storage, the temperature is stored as an integer after mutiplying the raw value by 20
downfall: i8
Downfall 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, __Context> BorrowDecode<'__de, __Context> for Biome
impl<'__de, __Context> BorrowDecode<'__de, __Context> for Biome
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
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