diff --git a/build.gradle b/build.gradle index e3083f38..e21bd083 100644 --- a/build.gradle +++ b/build.gradle @@ -34,7 +34,11 @@ mcGitVersion { setCommitVersion("570c0cbf0cdc15b8348a862a519d3399a943af9", "0.0") } -//sourceSets { +sourceSets { + forge { + compileClasspath = sourceSets.main.compileClasspath + runtimeClasspath = sourceSets.main.runtimeClasspath + } // create("gametest") { // compileClasspath += configurations.compileClasspath // compileClasspath += configurations.testCompileClasspath @@ -43,7 +47,7 @@ mcGitVersion { // runtimeClasspath += configurations.testRuntimeClasspath // runtimeClasspath += sourceSets.main.output // } -//} +} tasks.register("generatePackageInfo") { group = "filegen" @@ -79,6 +83,13 @@ mixinGen { it.injectorsDefaultRequire = 1 } + config(sourceSets.forge, "forge") { + it.required = true + it.conformVisibility = true + it.injectorsDefaultRequire = 1 + it.configurationPlugin = "io.github.opencubicchunks.cubicchunks.mixin.ASMConfigPlugin" + } + config(sourceSets.test, "test") { it.required = true it.conformVisibility = true @@ -174,7 +185,7 @@ runs { jvmArguments args // systemProperty 'forge.logging.markers', 'REGISTRIES' systemProperty 'forge.logging.console.level', 'debug' - modSource project.sourceSets.main + modSource project.sourceSets.forge dependencies { runtime project.configurations.libraries } diff --git a/src/forge/resources/cubicchunks.mixins.forge.json b/src/forge/resources/cubicchunks.mixins.forge.json new file mode 100644 index 00000000..4be79bcd --- /dev/null +++ b/src/forge/resources/cubicchunks.mixins.forge.json @@ -0,0 +1,17 @@ +{ + "required": true, + "package": "io.github.opencubicchunks.cubicchunks.mixin.forge", + "refmap": "CubicChunks-refmap.json", + "compatibilityLevel": "JAVA_17", + "minVersion": "0.8", + "injectors": { + "defaultRequire": 1 + }, + "overwrites": { + "conformVisibility": true + }, + "mixins": [ + ], + "client": [], + "server": [] +} \ No newline at end of file diff --git a/src/main/resources/cubicchunks.mixins.core.json b/src/main/resources/cubicchunks.mixins.core.json index 8aa7baf6..02d4c3a1 100644 --- a/src/main/resources/cubicchunks.mixins.core.json +++ b/src/main/resources/cubicchunks.mixins.core.json @@ -13,6 +13,7 @@ }, "mixins": [ "common.client.multiplayer.MixinClientLevel", + "common.server.MixinMinecraftServer", "common.server.level.MixinChunkTaskPriorityQueue", "common.server.level.MixinChunkTaskPriorityQueueSorter", "common.server.level.MixinChunkTicketTracker", @@ -24,17 +25,17 @@ "common.server.level.MixinServerLevel", "common.server.level.MixinServerPlayer", "common.server.level.MixinTickingTracker", - "common.server.MixinMinecraftServer", + "common.world.level.MixinLevel", + "common.world.level.MixinLevelReader", "common.world.level.chunk.MixinChunkAccess", + "common.world.level.chunk.MixinChunkSource", "common.world.level.chunk.MixinImposterProtoChunk", "common.world.level.chunk.MixinLevelChunk", "common.world.level.cube.MixinCubeAccess", + "common.world.level.cube.MixinImposterProtoCube", "common.world.level.cube.MixinLevelCube", "common.world.level.cube.MixinLevelCube$BoundTickingBlockEntity", "common.world.level.cube.MixinLevelCube$RebindableTickingBlockEntityWrapper", - "common.world.level.chunk.MixinChunkSource", - "common.world.level.MixinLevel", - "common.world.level.MixinLevelReader", "common.world.level.cube.MixinProtoCube" ], "client": [],