MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / firstTreeType

Method firstTreeType

source/game/StarBiome.cpp:33–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33Maybe<TreeVariant> BiomePlaceables::firstTreeType() const {
34 for (auto const& itemDistribution : itemDistributions) {
35 for (auto const& biomeItem : itemDistribution.allItems()) {
36 if (biomeItem.is<TreePair>())
37 return biomeItem.get<TreePair>().first;
38 }
39 }
40 return {};
41}
42
43Biome::Biome() {
44 mainBlock = EmptyMaterialId;

Callers 2

createBiomeMethod · 0.80
placeBiomeTreeMethod · 0.80

Calls 1

allItemsMethod · 0.45

Tested by

no test coverage detected