Go to file
liach ec6bba566f
Generate javadocs (#1268)
* Eww, embrace #1266! Die in a 🔥 bukkit javadocs!

Signed-off-by: liach <liach@users.noreply.github.com>

* Add jd artifact, travis start doing javadoc [ci skip]
doesn't have mapping poet ready yet

Signed-off-by: liach <liach@users.noreply.github.com>

* Make it fail on error (otherwise it just outputs an empty directory) [ci skip]

* Update to handle javadocs with annos [ci skip]

Signed-off-by: liach <liach@users.noreply.github.com>

* Use the maven dep, nice

Signed-off-by: liach <liach@users.noreply.github.com>

* Link to more useful libraries

Signed-off-by: liach <liach@users.noreply.github.com>

* Is it old gradle wrapper causing problems

Signed-off-by: liach <liach@users.noreply.github.com>

* Try clean and see if it changes. Dunno why, this always worked on my machine

* No clue

Signed-off-by: liach <liach@users.noreply.github.com>

* Err

* ???

* err

* .

Signed-off-by: liach <liach@users.noreply.github.com>

* I thonk I fixed it

Signed-off-by: liach <liach@users.noreply.github.com>

* Tweak jenkinsfile

Signed-off-by: liach <liach@users.noreply.github.com>

Co-authored-by: liach <liach@users.noreply.github.com>
2020-04-07 21:13:29 +01:00
gradle/wrapper Generate javadocs (#1268) 2020-04-07 21:13:29 +01:00
mappings Random fixes (#1265) 2020-04-07 00:29:55 +01:00
.editorconfig more random mappings and other changes (#192) 2018-11-15 17:57:32 +01:00
.gitattributes Use eol=lf on *.mapping files to help Windows users (#493) 2019-03-20 00:14:47 +00:00
.gitignore 1.14.4-pre2 2019-07-04 16:29:01 +01:00
.travis.yml Generate javadocs (#1268) 2020-04-07 21:13:29 +01:00
CONTRIBUTING.md Add CONTRIBUTING.md, mention mojmap being ARR (#1222) 2020-03-26 14:12:00 +00:00
CONVENTIONS.md Add CONTRIBUTING.md, mention mojmap being ARR (#1222) 2020-03-26 14:12:00 +00:00
Jenkinsfile Generate javadocs (#1268) 2020-04-07 21:13:29 +01:00
LICENSE first commit 2016-08-12 15:28:17 +02:00
MAINTAINERS add maintainer list for lgtm 2016-08-19 23:19:08 +02:00
README.md Add CONTRIBUTING.md, mention mojmap being ARR (#1222) 2020-03-26 14:12:00 +00:00
build.gradle Generate javadocs (#1268) 2020-04-07 21:13:29 +01:00
enigma_profile.json The Great Intermediary Update, Part 1 2019-06-28 23:55:20 +02:00
gradle.properties Hotfix for #696 and fix travis 2019-05-13 16:48:16 +01:00
gradlew Remove maven plugin (deprecated by gradle) (#990) 2019-12-11 11:52:21 +00:00
gradlew.bat Generate javadocs (#1268) 2020-04-07 21:13:29 +01:00

README.md

Yarn

Yarn is a set of open, unencumbered Minecraft mappings, free for everyone to use under the Creative Commons Zero license. The intention is to let everyone mod Minecraft freely and openly, while also being able to innovate and process the mappings as they see fit.

To see the current version being targeted, check the branch name!

Usage

To use yarn-deobfuscated Minecraft for Minecraft modding or as a dependency in a Java project, you can use loom Gradle plugin. See fabric wiki tutorial for more information.

To obtain a deobfuscated Minecraft jar, ./gradlew mapNamedJar will generate a jar named like <minecraft version>-named.jar, which can be sent to a decompiler for deobfuscated code.

Contributing

Please remember that copying and pasting mappings from alternate projects under more restrictive licenses (such as MCP or Mojang's obfuscation maps) is completely forbidden without explicit permission from the owners of said mappings to distribute the names under the CC0 license. This includes using the names from those mappings for inspiration. Discussing the naming approaches used in said projects is also not welcome - you have been warned. However, it is a good idea to consult name changes with other people - use pull requests or our community spaces to ask questions!

Please have a look at the naming conventions before submitting mappings.

Getting Started

  1. Fork and clone the repo
  2. Run ./gradlew yarn (Linux, macOS) or gradlew yarn (Windows)
  3. Profit

Gradle

Yarn uses Gradle to provide a number of utility tasks for working with the mappings.

yarn

setupYarn and download and launch the latest version of Enigma automatically configured to use the merged jar and the mappings.

Compared to launching Enigma externally, the gradle task adds a name guesser plugin that automatically map enums and a few constant field names.

build

Build a GZip'd archive containing a tiny mapping between official (obfuscated), intermediary, and yarn names ("named") and packages enigma mappings into a zip archive..

mapNamedJar

Builds a deobfuscated jar with yarn mappings and automapped fields (enums, etc.). Unmapped names will be filled with intermediary names.

download

Downloads the client and server Minecraft jars for the current Minecraft version to .gradle/minecraft

mergeJars

Merges the client and server jars into one merged jar, located at VERSION-merged.jar in the mappings directory where VERSION is the current Minecraft version.

setupYarn

download and mergeJars