summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoganDark2022-08-03 10:01:50 -0700
committerLoganDark2022-08-03 10:01:50 -0700
commitd2ab4db35342888743566bb68b8742ff4257b20b (patch)
treed44c17136ecd3061ef2cbdd01c15ae4b00ba5171
parente67034e02108013a9739496c00aea54303e5ae66 (diff)
You don't need the entire Fabric API
This massively speeds up sync times for me, since Loom no longer has to remap 45+ Fabric API modules. Additionally, this allows users to install No Chat Reports without Fabric API, as the required modules are already included.
-rw-r--r--build.gradle9
-rw-r--r--src/main/resources/fabric.mod.json5
2 files changed, 11 insertions, 3 deletions
diff --git a/build.gradle b/build.gradle
index 514e73d..64e6089 100644
--- a/build.gradle
+++ b/build.gradle
@@ -24,7 +24,12 @@ dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings loom.officialMojangMappings()
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
- modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
+
+ include(fabricApi.module("fabric-api-base", project.fabric_version))
+ modImplementation include(fabricApi.module("fabric-networking-api-v1", project.fabric_version))
+ modImplementation include(fabricApi.module("fabric-screen-api-v1", project.fabric_version))
+ modImplementation include(fabricApi.module("fabric-rendering-v1", project.fabric_version))
+ modImplementation include(fabricApi.module("fabric-resource-loader-v0", project.fabric_version))
}
processResources {
@@ -129,4 +134,4 @@ afterEvaluate {
task upload {
dependsOn('modrinth')
dependsOn('curseforge')
-} \ No newline at end of file
+}
diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json
index f1fbb09..c5c0449 100644
--- a/src/main/resources/fabric.mod.json
+++ b/src/main/resources/fabric.mod.json
@@ -32,7 +32,10 @@
"depends": {
"fabricloader": ">=0.14.6",
- "fabric": "*",
+ "fabric-networking-api-v1": "*",
+ "fabric-screen-api-v1": "*",
+ "fabric-rendering-v1": "*",
+ "fabric-resource-loader-v0": "*",
"minecraft": "=1.19.1",
"java": ">=17"
},