Expand description
Region access for chunk feature generation.
Feature placement needs the center chunk plus its direct dependencies, while writes must
stay inside the stageβs block-state write radius. WorldGenRegion centralizes that
contract so feature, structure, and vegetation code cannot bypass the chunk pyramid.
StructsΒ§
- Cached
World πGenChunk - Cached
Worldgen πHeightmaps - World
GenBulk πSection Access - Cached section-level access for feature code that mirrors vanilla
BulkSectionAccess. - World
GenChunk πRef - A generation dependency with access semantics captured when it was acquired.
- World
GenRegion - Chunk-cache backed worldgen view for the current generation step.
- Writable
Section πKey
EnumsΒ§
- World
GenAccess πMode - The access mode is captured when a generation dependency is acquired.
ConstantsΒ§
- BULK_
SECTION_ πINLINE_ CHUNKS - Size of 8 is fine here because analysis showed that 91.7% only ever reach <=2 and the largest one ever grew was 6. Decreasing the size below 8 resulted in no change in speed.
FunctionsΒ§
- abs_
diff π
Type AliasesΒ§
- Bulk
Section πChunk Map