Merge branch 'wave3b/3'

# Conflicts:
#	CONTRACTS.md
This commit is contained in:
piexel committed 2026-10-15 07:06:59 +02:00
commit 3ab8b88e56
10 files changed
+199 -32

No files matched your search

+7 -1
View File
@@ -1022,13 +1022,18 @@ from a sapling, which drops a block has. A module answers such questions through
state) and every random value they carry, the host only plays them.
- **Services now.** `ObjectsAt` (`ALL`): pack object keys a module would place in a chunk, predicted without
generating it, and the biomes and regions whose settings place a given object (`PlacedBy`, named by pack keys; the
host builds its search area from them through the biome tree it owns). `StructureLocator` (`FIRST`): every structure key a module knows, the ones a world places, and the
host builds its search area from them through the biome tree it owns). `StructureLocator` (`FIRST`): every structure key a module knows, the ones a world places (`locatable`; `placed` adds the
platform structures the module starts or stands in for, and keys it places but cannot search for), and the
nearest start of one as a `LocateResult` (`Found`, `NotFound`, `SearchLimitReached`; a sealed interface, so callers
switch over every outcome). Keys are pack keys as packs write them and match without regard to case.
`CaveBiomes` (`ONE`): the pack biome a module puts at a position whatever the regions say (a band of the deep dark,
`overriddenBiome`, the height counted above the dimension's bottom) and how deep below the surface a biome's caves begin
(`minDepthBelowSurface`, asked once per biome and kept while the world runs). The host owns the 3D biome of a position (its regions, terrain height and the cave biome stream)
and asks this only where a module decides; one provider, since two modules could not both decide the biome of one cave.
`VanillaFeatures` (`ALL`): whether the platform's own placed features run over a world's terrain (`generates`, off unless a
module turns it on) and which decoration steps and features they skip (`generatesStep`, `generatesFeature`; any module may
refuse one). The host asks once per world, step and feature and keeps the answers; the platform's feature pass itself, its
biome tables, seeds and order, stays the host's.
- **Settings that name biomes.** The host owns the biome tree (a region's biomes and their children) and the set of
biomes a dimension reaches, and both must include biomes that module settings name: a cave band's biome, the target of a
floating island. Settings say so by implementing `LinkedBiomes` (`treeBiomes`, which join a region's tree and so its terrain
@@ -1088,6 +1093,7 @@ This is an inventory of where each existing family should land, not a claim that
| Floating islands and child biomes | Terrain/biome sampling + chunk and placement stages |
| Structures, jigsaw pools and foundations | Structure assembly producing placement requests |
| Imported/native structures and ownership | `VanillaStructures` service (rule, starts, shift, reach, beforePieces, afterPieces, setup); host native-generation bridge per platform |
| Imported/native placed features | `VanillaFeatures` service (generates, generatesStep, generatesFeature); host feature pass per platform |
| Terrain layers, fluids, bedrock, interpolation | Terrain providers + chunk stages |
| Region/biome selection | Biome providers + platform biome writer |
| Image maps, noise expressions, pack injection | Compiled immutable pack resources |