Skip to main content

Module region

Module region 

Source
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Β§

CachedWorldGenChunk πŸ”’
CachedWorldgenHeightmaps πŸ”’
WorldGenBulkSectionAccess πŸ”’
Cached section-level access for feature code that mirrors vanilla BulkSectionAccess.
WorldGenChunkRef πŸ”’
A generation dependency with access semantics captured when it was acquired.
WorldGenRegion
Chunk-cache backed worldgen view for the current generation step.
WritableSectionKey πŸ”’

EnumsΒ§

WorldGenAccessMode πŸ”’
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Β§

BulkSectionChunkMap πŸ”’