/// Creates a new empty chunk
/// with the specified location,
/// and filling its biomes with
/// the provided `default_biome`.
Creates a new empty chunk
with the specified location,
and filling its biomes with
the provided `default_biome`.
Creates a new empty chunk with the specified location and filling its biomes with the provided ` default_biome ` .
pub fn new_with_default_biome(location: ChunkPosition, default_biome: Biome) -> Self {
        Self {
            location,
            modified: true,
            biomes: [default_biome; SECTION_WIDTH * SECTION_HEIGHT],
            ..Default::default()
        }
    }
pub fn new_with_default_biome ( location : ChunkPosition , default_biome : Biome ) -> Self { Self { location , modified : true , biomes : [ default_biome ; SECTION_WIDTH * SECTION_HEIGHT ] , .. Default :: default ( ) } }
Creates a new empty chunk
with the specified location,
and filling its biomes with
the provided `default_biome`.
Creates a new empty chunk with the specified location and filling its biomes with the provided ` default_biome ` .
location
ChunkPosition
default_biome
Biome