Batch 7 stage 4a: biome height, sky biome and platform biome writes

TerrainSampler.biomeHeight and skyBiome answer for a pack biome at any
column; Mantle.setPlatformBiome makes a block show a platform biome, inside
a chunk stage's own chunk. These replace the module's FloatingHost facade.
README, DESIGN (ledger drops FloatingHost) and CONTRACTS updated.
This commit is contained in:
piexel committed 2026-10-28 01:58:46 +01:00
1 parent f1eb619344
commit 95582abb6e
9 files changed
+79 -2

No files matched your search

@@ -2,6 +2,7 @@ package com.volmit.mantle;
import com.volmit.block.BlockState;
import com.volmit.geometry.BlockBox;
import com.volmit.resource.ResourceId;
/**
* Invocation-scoped access to typed mantle data. X and Z are world block coordinates; Y is
@@ -39,6 +40,13 @@ public interface Mantle {
*/
boolean isCarved(int x, int y, int z);
/** Shows the block as platform biome {@code biome}, such as {@code minecraft:plains} or a pack's custom biome, instead
* of the biome its column generates as; the host's biome pass reads it when it writes the chunk's biomes. The host
* owns this layer and keeps it in its own form, so it is written only and needs no registration. A chunk stage
* sets it inside its own chunk only, like module layers.
*/
void setPlatformBiome(int x, int y, int z, ResourceId biome);
/** Only one edit may be active per view. Parent reads remain allowed, but parent
* mutations are prohibited until the edit ends (IllegalStateException).
*/