Move structure placement and jigsaw into the built-in modules jar

iris:structure places and locates structures and owns the structure commands; iris:jigsaw owns the model, the
assembler, the importers, the studio and the jigsaw commands. Both load from the jar, and the studio now lives with
its tool world: it is created by the first jigsaw command and closes with the world. The host's structure host,
model module, assemblies seam and studio host are gone. A datapack's structures are imported through the new
DatapackStructureImport service.
This commit is contained in:
piexel committed 2026-11-10 04:04:57 +01:00
1 parent ba8429952a
commit 543e8c615e
235 files changed
+1199 -1006

No files matched your search

@@ -1,6 +1,7 @@
package art.arcane.iris.nativegen;
import art.arcane.iris.engine.framework.NativeStartMemo;
import art.arcane.iris.engine.mantle.components.StructureModule;
import art.arcane.iris.engine.framework.nativefit.NativeStructureFitting;
import net.minecraft.SharedConstants;
import net.minecraft.core.BlockPos;
@@ -55,7 +56,7 @@ public class NativeStructureVacuumParityTest {
Map<BlockPos, BlockState> blocks = flatTerrain(area);
Map<BlockPos, BlockState> original = new HashMap<>(blocks);
NativeStructureFitting.builtInModules().beforePieces(NativeStructureFitBridge.chunk(world(blocks), area,
NativeStructureFitting.ofModules(new StructureModule()).beforePieces(NativeStructureFitBridge.chunk(world(blocks), area,
List.of(new NativeStructureFitBridge.FitTarget("test:vacuum", start,
new NativeStartMemo("{\"terrain\":{\"mode\":\"VACUUM\"}}"))), (x, z) -> SURFACE_Y));