mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-12-03 19:51:49 +00:00
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:
1 parent
ba8429952a
commit
543e8c615e
235 files changed
+1199
-1006
No files matched your search
+2
-1
@@ -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(
|
||||
|
||||
+2
-1
@@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user