MCPcopy Create free account
hub / github.com/DFHack/dfhack / layerMaterialAt

Function layerMaterialAt

library/include/modules/MapCache.h:187–189  ·  view source on GitHub ↗

Geological layer soil or stone material at pos

Source from the content-addressed store, hash-verified

185
186 /// Geological layer soil or stone material at pos
187 int16_t layerMaterialAt(df::coord2d p) {
188 return biomeInfoAt(p).layer_stone[layerIndexAt(p)];
189 }
190
191 /// Biome-specific lava stone at pos
192 int16_t lavaStoneAt(df::coord2d p) { return biomeInfoAt(p).lava_stone; }

Callers 2

setStoneAtMethod · 0.85
setSoilAtMethod · 0.85

Calls 2

layerIndexAtFunction · 0.85
BlockAtTileFunction · 0.85

Tested by

no test coverage detected