You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Go to file
Nolij c5ee5c4747
add getSkyColor mapping to ClientWorld (#2899)
2 years ago
.github/workflows Build fully on Java 17, closes #2670 (#2676) 2 years ago
gradle/wrapper Build fully on Java 17, closes #2670 (#2676) 2 years ago
mappings add getSkyColor mapping to ClientWorld (#2899) 2 years ago
src Barebone javadoc for brain, explains why (#2475) 2 years ago
unpick-definitions Unpick lightmap constants. (#2595) 2 years ago
.editorconfig Unpick biome IDs (#2258) 2 years ago
.gitattributes Use eol=lf on *.mapping files to help Windows users (#493) 4 years ago
.gitignore Update Dependencies (#2343) 2 years ago
CONTRIBUTING.md Add CONTRIBUTING.md, mention mojmap being ARR (#1222) 3 years ago
CONVENTIONS.md Fix English errors in CONVENTIONS.md and README.md (#2414) 2 years ago
HEADER Minor javadoc updates around unpick (#2200) 2 years ago
LICENSE first commit 7 years ago
MAINTAINERS add maintainer list for lgtm 7 years ago
README.md Fix English errors in CONVENTIONS.md and README.md (#2414) 2 years ago
build.gradle Build fully on Java 17, closes #2670 (#2676) 2 years ago
enigma_profile.json The Great Intermediary Update, Part 1 4 years ago
gradle.properties Revert "Use automapped names for documented fields (#2571)" 2 years ago
gradlew Build fully on Java 17, closes #2670 (#2676) 2 years ago
gradlew.bat Use github actions to publish releases 3 years ago
settings.gradle Build javadoc against java 16 2 years ago
unpick-logging.properties Fix unpick log spamming (#2189) 2 years ago

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.

Please note to run the yarn build script Java 16 or higher is required!

Contributing

Please remember that copying and pasting mappings from alternate projects under more restrictive licenses (such as MCP, Spigot's 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) to open Enigma, a user interface to easily edit the mappings
  3. Commit and push your work to your fork
  4. Open a pull request with your changes

Gradle

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

yarn

Setup 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 maps enums and a few constant field names.

yarnUnpicked

Same as above, but unpicks the constants and launches Enigma with them. Can be a little bit slower to get going.

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.

decompileCFR

Decompile the mapped source code. Note: This is not designed to be recompiled.

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.