/// Returns the top soil block for the given biome.
Returns the top soil block for the given biome.
Returns the top soil block for the given biome .
fn top_soil_block(biome: Biome) -> Block {
    match biome {
        Biome::SnowyTundra
        | Biome::IceSpikes
        | Biome::SnowyTaiga
        | Biome::SnowyTaigaMountains
        | Biome::SnowyBeach => Block::GrassBlock(GrassBlockData { snowy: true }),
        Biome::GravellyMountains | Biome::ModifiedGravellyMountains => Block::Gravel,
        Biome::StoneShore => Block::Stone,
        Biome::Beach | Biome::Desert | Biome::DesertHills | Biome::DesertLakes => Block::Sand,
        Biome::MushroomFields | Biome::MushroomFieldShore => {
            Block::Mycelium(MyceliumData { snowy: false })
        }
        Biome::Badlands
        | Biome::ErodedBadlands
        | Biome::WoodedBadlandsPlateau
        | Biome::BadlandsPlateau
        | Biome::ModifiedBadlandsPlateau
        | Biome::ModifiedWoodedBadlandsPlateau => Block::RedSand,
        Biome::Ocean => Block::Sand,
        _ => Block::GrassBlock(GrassBlockData::default()),
    }
}
fn top_soil_block ( biome : Biome ) -> Block { match biome { Biome :: SnowyTundra | Biome :: IceSpikes | Biome :: SnowyTaiga | Biome :: SnowyTaigaMountains | Biome :: SnowyBeach => Block :: GrassBlock ( GrassBlockData { snowy : true } ) , Biome :: GravellyMountains | Biome :: ModifiedGravellyMountains => Block :: Gravel , Biome :: StoneShore => Block :: Stone , Biome :: Beach | Biome :: Desert | Biome :: DesertHills | Biome :: DesertLakes => Block :: Sand , Biome :: MushroomFields | Biome :: MushroomFieldShore => { Block :: Mycelium ( MyceliumData { snowy : false } ) } Biome :: Badlands | Biome :: ErodedBadlands | Biome :: WoodedBadlandsPlateau | Biome :: BadlandsPlateau | Biome :: ModifiedBadlandsPlateau | Biome :: ModifiedWoodedBadlandsPlateau => Block :: RedSand , Biome :: Ocean => Block :: Sand , _ => Block :: GrassBlock ( GrassBlockData :: default ( ) ) , } }
Returns the top soil block for the given biome.
Returns the top soil block for the given biome .
biome
Biome