From c49e38a58c1829438c7fee51669a8d840f906551 Mon Sep 17 00:00:00 2001 From: Ran <43445785+RanCraftPlayz@users.noreply.github.com> Date: Mon, 18 Apr 2022 18:59:00 +0600 Subject: [PATCH] Add Parchment mappings (it's parameter mappings & javadoc) --- 1.16.5.properties | 1 + 1.17.1.properties | 1 + 1.18.1.properties | 1 + 1.18.2.properties | 1 + Readme.md | 2 +- build.gradle | 13 +++++++++++-- 6 files changed, 16 insertions(+), 3 deletions(-) diff --git a/1.16.5.properties b/1.16.5.properties index 518e6123a..bc4c10e68 100644 --- a/1.16.5.properties +++ b/1.16.5.properties @@ -2,6 +2,7 @@ java_version=8 minecraft_version=1.16.5 +parchment_version=2022.03.06 compatible_minecraft_versions=["1.16.4", "1.16.5"] # Fabric loader diff --git a/1.17.1.properties b/1.17.1.properties index 4d85f2a2a..175e060e1 100644 --- a/1.17.1.properties +++ b/1.17.1.properties @@ -2,6 +2,7 @@ java_version=16 minecraft_version=1.17.1 +parchment_version=2021.12.12 compatible_minecraft_versions=["1.17", "1.17.1"] # Fabric loader diff --git a/1.18.1.properties b/1.18.1.properties index 5bdba4005..62c2fcedb 100644 --- a/1.18.1.properties +++ b/1.18.1.properties @@ -2,6 +2,7 @@ java_version = 17 minecraft_version=1.18.1 +parchment_version=2022.03.06 compatible_minecraft_versions=["1.18", "1.18.1"] # Fabric loader diff --git a/1.18.2.properties b/1.18.2.properties index 462b071b2..606c4dc57 100644 --- a/1.18.2.properties +++ b/1.18.2.properties @@ -2,6 +2,7 @@ java_version = 17 minecraft_version=1.18.2 +parchment_version=2022.03.13 compatible_minecraft_versions=["1.18.2"] # Fabric loader diff --git a/Readme.md b/Readme.md index 7fda8d2c7..d3ce1f323 100644 --- a/Readme.md +++ b/Readme.md @@ -126,7 +126,7 @@ If running on IDE, to ensure IDE pickup the changed versions, you will need to r The Minecraft source code is NOT added to your workspace in an editable way. Minecraft is treated like a normal Library. Sources are there for documentation and research purposes only. -Source code uses Mojang mappings. +Source code uses Mojang mappings & Parchment mappings. ## Useful commands diff --git a/build.gradle b/build.gradle index 89d49511f..fa67fb0ed 100644 --- a/build.gradle +++ b/build.gradle @@ -101,8 +101,13 @@ subprojects { p -> dependencies { minecraft "com.mojang:minecraft:${rootProject.minecraft_version}" - // The following line declares the mojmap mappings - mappings loom.officialMojangMappings() + // The following line declares the mojmap mappings & parchment mappings + mappings loom.layered() { + // Mojmap mappings + officialMojangMappings() + // Parchment mappings (it adds parameter mappings & javadoc) + parchment("org.parchmentmc.data:parchment-${rootProject.minecraft_version}:${rootProject.parchment_version}@zip") + } //Manifold annotationProcessor "systems.manifold:manifold-preprocessor:${rootProject.manifold_version}" @@ -144,6 +149,10 @@ allprojects { p -> repositories { mavenCentral() + + // For parchment mappings + maven { url "https://maven.parchmentmc.org" } + // used to download and compile dependencies from git repos maven { url 'https://jitpack.io' }