Go to file
ByMartrixX 4396cbc801
Many client side GUI mappings (#2048)
* A bunch of GUI mappings

* client.gui.hud.spectator.*

* PlayerListHud

* AdvancementsScreen

* client.gui.screen.ingame.*

* Fix duplicated field

* Fix more duplicated fields.

Remove non-existent field from CreateWorldScreen
Add field_26562 and method_30902 to BeaconScreen

* Use names from latest snapshot

* Update mappings/net/minecraft/client/gui/screen/world/WorldListWidget.mapping

Co-authored-by: YanisBft <doublecraft.official@gmail.com>

* Update mappings/net/minecraft/client/gui/screen/ingame/BookEditScreen.mapping

* Update mappings/net/minecraft/client/gui/screen/DatapackFailureScreen.mapping

Co-authored-by: i509VCB <i509vcb@gmail.com>

* Update files

* Update mappings/net/minecraft/client/gui/hud/PlayerListHud.mapping

Co-authored-by: haykam821 <24855774+haykam821@users.noreply.github.com>

* Update mappings/net/minecraft/client/gui/hud/PlayerListHud.mapping

* Update mappings/net/minecraft/client/gui/MapRenderer.mapping

* Update mappings/net/minecraft/client/gui/screen/DownloadingTerrainScreen.mapping

* Update mappings/net/minecraft/client/gui/screen/TitleScreen.mapping

* Map more things on client.gui.widget

* Update mappings/net/minecraft/client/gui/widget/EntryListWidget.mapping

* Map method_31406

* Map stuff on client.gui.screen.advancement.AdvancementWidget

* Map more stuff on client.gui.screen.ingame

* Map stuff on client.gui.screen.multiplayer

* Map things on client.gui.screen.pack

* client.gui.screen.recipebook

* client.gui.screen.world

* client.gui.screen

* Apply @liach's suggestions

* Apply suggestions from code review

Co-authored-by: liach <7806504+liach@users.noreply.github.com>

* Various changes.
Map some parameters
Change stuff to the snapshot branch names

* Apply suggestions from code review

Co-authored-by: YanisBft <doublecraft.official@gmail.com>

* Apply suggestions from code review

Looks like I missed one

Co-authored-by: liach <7806504+liach@users.noreply.github.com>

Co-authored-by: YanisBft <doublecraft.official@gmail.com>
Co-authored-by: i509VCB <i509vcb@gmail.com>
Co-authored-by: haykam821 <24855774+haykam821@users.noreply.github.com>
Co-authored-by: liach <7806504+liach@users.noreply.github.com>
2021-02-22 23:15:46 +00:00
.github/workflows Use github actions to publish releases 2021-01-08 19:41:55 +00:00
gradle/wrapper Use github actions to publish releases 2021-01-08 19:41:55 +00:00
mappings Many client side GUI mappings (#2048) 2021-02-22 23:15:46 +00:00
.editorconfig Port GLDebug mappings (#1478) 2020-06-18 17:22:25 +01:00
.gitattributes Use eol=lf on *.mapping files to help Windows users (#493) 2019-03-20 00:14:47 +00:00
.gitignore Backport getBoxAt (#1962) 2021-01-21 18:44:34 +00:00
CONTRIBUTING.md Add CONTRIBUTING.md, mention mojmap being ARR (#1222) 2020-03-26 14:12:00 +00:00
CONVENTIONS.md Add javadocs convention (#1790) 2020-10-13 08:56:22 +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 a simple `decompileCFR` task (#1805) 2020-10-31 19:02:53 +00:00
build.gradle 1.16.5 2021-01-15 13:50:19 +00:00
enigma_profile.json The Great Intermediary Update, Part 1 2019-06-28 23:55:20 +02:00
gradle.properties Add javadocs convention (#1790) 2020-10-13 08:56:22 +01:00
gradlew Use github actions to publish releases 2021-01-08 19:41:55 +00:00
gradlew.bat Use github actions to publish releases 2021-01-08 19:41:55 +00: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, 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

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.

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.

setupYarn

download and mergeJars