| 369 | } |
| 370 | |
| 371 | BiomeConstPtr 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 | |
| 379 | BiomeConstPtr WorldTemplate::blockBiome(int x, int y) const { |
| 380 | return biome(blockBiomeIndex(m_geometry.xwrap(x), y)); |
no outgoing calls
no test coverage detected