File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ You can find dependencies block in `gradle/scripts/dependencies.gradle`.
2626
2727No more ` rfg.deobf() ` or ` fg.deobf ` . You ** MUST** add mods by using ` modImplementation ` or ` modRuntimeOnly ` , or the game will crash when running.
2828
29+ Use ` modLibrary ` for libs/mods that you don't want to remap.
30+
2931### Non-Mod Dependencies
3032Two new configuration types ` contain ` and ` shadow ` are available, check more details in ` dependencies.gradle ` .
3133
@@ -44,10 +46,11 @@ You should change its location to fit your new package name.
4446You can find its template under ` src/main/java-templates ` .
4547
4648### Mixin
47- 1 . Rename json config file to include your modid. You will need one json per phase (` PRE_INIT ` , ` DEFAULT ` , ` MOD ` )
48- 2 . Add your mixin classes there.
49- 3 . Use ` IMixinConfigPlugin ` to control if certain mixin should be enabled. You can call ` Loader.isModLoaded() ` for ` MOD ` phase mixins.
50- 4 . Don't worry about refmap, Unimined will handle it automatically. You can still ` disableRefmap() ` manually though
49+ 1 . Rename json config file to use your modid.
50+ 2 . Add ** all** your mixin classes there.
51+ 3 . Use ` IMixinConfigPlugin ` to control if certain mixin should be enabled.
52+ 4 . mixin classes will be passed to the plugin only when target class is loading, so you don't need to call ` Loader.isModLoaded() `
53+ 5 . Don't worry about refmap, Unimined will handle it automatically. You can still ` disableRefmap() ` manually though
5154
5255### Access Transformer
5356You ** MUST** write AT file in MCP name. It will be remapped back to SRG name in artifact jar.
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ plugins {
55 id ' maven-publish'
66 id ' com.gradleup.shadow' version ' 9.5.1'
77 id ' org.jetbrains.gradle.plugin.idea-ext' version ' 1.4.1'
8- id ' xyz.wagyourtail.unimined' version ' 1.4.35 -kappa'
8+ id ' xyz.wagyourtail.unimined' version ' 1.4.36 -kappa'
99 id ' net.kyori.blossom' version ' 2.2.0'
1010}
1111
@@ -211,16 +211,6 @@ shadowJar {
211211 archiveClassifier = " shadow"
212212}
213213
214-
215- tasks. named(remapTaskName). configure {
216- doFirst {
217- logging. captureStandardOutput LogLevel . INFO
218- }
219- doLast {
220- logging. captureStandardOutput LogLevel . QUIET
221- }
222- }
223-
224214compileTestJava {
225215 sourceCompatibility = targetCompatibility = JavaVersion . VERSION_25
226216}
Original file line number Diff line number Diff line change @@ -25,8 +25,9 @@ dependencies {
2525 if (enable_lwjglx. toBoolean()) {
2626 compileOnly " com.cleanroommc:lwjglx:1.0.0"
2727 }
28-
28+
2929 modRuntimeOnly " com.cleanroommc:scalar:1.0.0"
30+ modLibrary ' mezz:jei:4.33.0:dev'
3031
3132 // Example - Dependency descriptor:
3233 // 'com.google.code.gson:gson:2.8.6' << group: com.google.code.gson, name:gson, version:2.8.6
@@ -49,6 +50,7 @@ dependencies {
4950 // shadow = bundle dependencies into shadow output artifact (relocation configurable in shadowJar task)
5051 // modImplementation = mod dependency available at both compile time and runtime
5152 // modCompileOnly = mod dependency available only at compile time
53+ // modLibrary = won't be remap but will be forced injected into classpath later
5254
5355 // Transitive dependencies:
5456 // (Dependencies that your dependency depends on)
You can’t perform that action at this time.
0 commit comments