Read settings per column with every level as its own entry, add the mantle pipeline, host types and the one-option shorthand

Settings no longer resolve to one value per type. FeatureSettings.at(type, x, z) returns one entry per
level that declares the type at that column (dimension, region, surface biome, placement), each with
its level, source and value; levels stack and a module decides what several mean. Conditional stage
bodies receive every configured entry. Chunk and mantle runners collect a chunk's settings themselves,
so a stage runs when any column of the chunk configures it.

Work that writes the mantle or reaches beyond its chunk moves to a new MANTLE pipeline (Stage.mantle,
MantleRunner) that the host runs around a chunk before it generates. Chunk stages may no longer declare
a reach or mantle writes and see the mantle read-only.

Built-in settings may hold host types the host describes itself (ModuleHost.describingHostTypesIn,
ValueKind.HostKind); pack modules cannot. FeatureSchema.shorthand() names the only option of settings
packs may write as a bare value.
This commit is contained in:
piexel committed 2026-10-08 11:31:03 +02:00
1 parent 09df1af88e
commit 97ac2a2982
61 files changed
+1316 -184

No files matched your search

@@ -11,7 +11,7 @@ import com.volmit.stage.Stage;
import com.volmit.world.TerrainSampler;
import java.util.Objects;
/** The context every stage of one chunk invocation receives. */
/** The context every stage of one chunk invocation receives. The mantle is read-only. */
final class ChunkInvocation implements ChunkStageContext {
private final StageInvocation stages;
private final GenerationContext inputs;
@@ -57,7 +57,7 @@ final class ChunkInvocation implements ChunkStageContext {
@Override
public Mantle mantle() {
return inputs.mantle();
return new ReadOnlyMantle(inputs.mantle());
}
@Override