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.NativeStructureReach;
import art.arcane.iris.engine.framework.nativefit.NativeFitPiece;
import art.arcane.iris.engine.framework.nativefit.NativeStructureFitting;
@@ -1032,7 +1033,7 @@ public class NativeStructureFitBridgeTest {
}
private static final class BuiltInFitting {
private static final NativeStructureFitting FITTING = NativeStructureFitting.builtInModules();
private static final NativeStructureFitting FITTING = NativeStructureFitting.ofModules(new StructureModule());
}
private static PoolElementStructurePiece rigidTemplatePiece(
@@ -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 com.mojang.datafixers.util.Either;
import net.minecraft.SharedConstants;
@@ -140,7 +141,7 @@ public class NativeStructureFitPinTest {
/** The built-in modules load once for every scenario. */
private static final class BuiltInFitting {
private static final NativeStructureFitting FITTING = NativeStructureFitting.builtInModules();
private static final NativeStructureFitting FITTING = NativeStructureFitting.ofModules(new StructureModule());
}
/**