Merge gen-crash

This commit is contained in:
Brian Fopiano committed 2026-11-04 02:38:50 -05:00
commit d0923de181
26 files changed
+593 -233

No files matched your search

+1
View File
@@ -308,6 +308,7 @@ tasks.register('generationOrderProbe', JavaExec) {
mainClass = 'art.arcane.iris.probe.GenerationOrderProbe'
classpath = sourceSets.main.runtimeClasspath
jvmArgs('--add-modules', 'jdk.incubator.vector')
systemProperty('iris.probe.faultSurface', providers.gradleProperty('probeFaultSurface').orElse('').get())
dependsOn(':core:compileJava')
doFirst {
Map<String, Provider<String>> required = [
@@ -66,8 +66,14 @@ public final class StubPlatform implements IrisPlatform {
}
public static void bindGenerationStateHandlers() {
String faultSurface = System.getProperty("iris.probe.faultSurface", "");
DecoratorPlatformHooks.bind((state, hunk, rX, rZ, x, y, z, mantle) -> state,
(surface, upward) -> surface.isOccluding());
(surface, upward) -> {
if (!faultSurface.isEmpty() && surface.key().startsWith(faultSurface)) {
throw new IllegalArgumentException("Probe fault on " + surface.key());
}
return surface.isOccluding();
});
IrisObjectRotation.bindPlatformRotator(StubPlatform::rotateState);
BlockDataMergeSupport.bindPlatformMerger(StubPlatform::mergeStates);
TileData.bindPlatformReader(StubTileData::read);