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

Method biome

source/game/StarWorldTemplate.cpp:371–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369}
370
371BiomeConstPtr WorldTemplate::biome(BiomeIndex biomeIndex) const {
372 if (!m_layout)
373 return {};
374 if (biomeIndex == NullBiomeIndex)
375 return {};
376 return m_layout->getBiome(biomeIndex);
377}
378
379BiomeConstPtr WorldTemplate::blockBiome(int x, int y) const {
380 return biome(blockBiomeIndex(m_geometry.xwrap(x), y));

Callers 5

replaceBiomeBlocksMethod · 0.80
generateCaveLiquidMethod · 0.80
placeBiomeGrassMethod · 0.80
reapplyBiomeMethod · 0.80
makeWorldCallbacksFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected