User Tools

Site Tools


documentation:yarn

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
documentation:yarn [2023/09/13 18:50] – removed - external edit (Unknown date) 127.0.0.1documentation:yarn [2023/09/13 18:50] (current) – ↷ Links adapted because of a move operation nebelnidas
Line 1: Line 1:
 +====== Yarn ======
  
 +A minecraft mapping.
 +
 +See [[https://github.com/FabricMC/yarn/#yarn|readme]] for more information.
 +
 +Yarn depends on [[documentation:enigma]] and [[tools:stitch]].
 +
 +===== Usage =====
 +
 +See [[documentation:yarn]].
 +
 +==== Contributing mappings ====
 +
 +Run 
 +<code>gradlew yarn</code>
 +and the enigma user interface will appear. Edit the mappings; when you are ready, save it in enigma, commit in git (preferably in a custom branch), and submit a pull request.
 +
 +If you have changes done manually/from github suggestions, merge the remote branch, close enigma, and run the command again so that enigma can have the updated mapping contents.
 +
 +==== Using mappings in mods ====
 +
 +See [[tutorial:mappings]].
 +
 +==== Looking at Minecraft javadoc ====
 +
 +Existing yarn builds approximately after 20w14a (1.16) have javadoc generated. They are accessible at
 +<code>https://maven.fabricmc.net/docs/yarn-[minecraft version]+build.[build number]</code>
 +For example, the javadoc for yarn 21w05b+build.8 is available at https://maven.fabricmc.net/docs/yarn-21w05b+build.8/
 +
 +Run
 +<code>gradlew javadoc</code>
 +to generate javadoc from yarn's mappings. They will be built in the
 +<code>build/docs/javadoc</code>
 +directory relative to the repository root, and you can open index.html to view the docs.
 +
 +==== Building mapped jars for decompilers ====
 +
 +Though enigma comes with procyon, you may want other decompilers to decompile the Minecraft jar with yarn names. Run
 +<code>gradlew mapNamedJar</code>
 +After running the gradle task, a <version>-named.jar will be available, which you can put into your desired decompiler.