Batch 6 part 1: one bottom-Y name, no silently-wrong defaults, geometry package, blocks

Finding 43: PackWorld.minHeight(), PlatformStart.bottomY() and StructureFit.bottomY()
become minWorldY(), the name TerrainSampler already used, and none of them has a default.
FeatureSettings.declaredBy, TerrainSampler.surfaceBlock/upperDimension and
BlockRegistry.oreFor lose defaults that answered wrong for a host that forgot them.
BlockBox, BlockPosition and BlockFace move to com.volmit.geometry.

Finding 44: BlockRegistry keeps resolve(BlockSpec) and adds find(key), which is
empty for a block the platform lacks; resolve(String) and resolve(BlockState) go.
BlockTrait drops INVENTORY, BLOCK_ENTITY and NEEDS_UPDATE, which nothing asked;
BlockAccess.is answers every trait. GenerationContext.hunk(Class) becomes blocks().
This commit is contained in:
piexel committed 2026-10-24 05:19:06 +02:00
1 parent 9473c827fe
commit 05f621d82d
63 files changed
+187 -143

No files matched your search

@@ -1,7 +1,7 @@
package com.volmit.generation;
import com.volmit.config.FeatureSettings;
import com.volmit.mantle.BlockBox;
import com.volmit.geometry.BlockBox;
import com.volmit.world.TerrainSampler;
/** What chunk and mantle invocations share: the chunk they run for, its terrain and its settings. X and Z are world
@@ -1,5 +1,6 @@
package com.volmit.generation;
import com.volmit.block.BlockState;
import com.volmit.hunk.Hunk;
import com.volmit.mantle.Mantle;
import com.volmit.world.TerrainSampler;
@@ -30,8 +31,9 @@ public interface GenerationContext extends ChunkContext {
*/
Mantle mantle();
/** The host-owned local volume of the given value type, shared by all stages of this
* invocation. Unsupported types throw IllegalArgumentException.
/** The chunk's blocks, which the stages of this invocation build one after the other: a volume of 16 by the
* dimension's height by 16, local to the chunk, owned by the host and shared by every stage of the invocation.
* Empty space is air.
*/
<T> Hunk<T> hunk(Class<T> type);
Hunk<BlockState> blocks();
}