pub struct Biomes {
pub palette: Vec<String>,
pub data: Option<LongArray>,
}
Expand description
Fields§
§palette: Vec<String>
Set of different biomes used in this particular section.
data: Option<LongArray>
A packed array of 64 indices pointing to the palette
If only one biome is present in the palette, this field is not required and the biome fills the whole section.
All indices are the same length: the minimum amount of bits required to represent the largest index in the palette. These indices do not have a minimum size. Different chunks can have different lengths for the indices.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Biomes
impl<'de> Deserialize<'de> for Biomes
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
impl StructuralPartialEq for Biomes
Auto Trait Implementations§
impl Freeze for Biomes
impl RefUnwindSafe for Biomes
impl Send for Biomes
impl Sync for Biomes
impl Unpin for Biomes
impl UnwindSafe for Biomes
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