tutorial:migratemappings
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tutorial:migratemappings [2020/07/29 18:28] – florens | tutorial:migratemappings [2025/10/31 21:04] (current) – typo cassiancc | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Updating Yarn mappings in a Java codebase ====== | + | :!: //A more thorough documentation of the process of migrating |
| - | Loom allows semi-automatic updating of the mappings used in a Java codebase. Due to frequent changes in Yarn, this can be a useful tool for keeping a codebase up-to-date with the newest changes. | + | ====== Migrating to Yarn or Mojang Mappings |
| - | **Note:** This automated process currently only applies to most Java code. It will not automatically migrate mappings | + | Loom allows semi-automatic updating of the mappings used in a Java codebase. This can be a useful tool for users wishing to keep their codebase up-to-date with the new changes |
| - | ===== Loom 0.2.6 and above ===== | + | Loom does not support migrating code written in Kotlin. [[https:// |
| - | Say you want to migrate from 1.14.4 to 19w46b. | + | **Note:** This automated process does not yet handle Mixins or reflection. Updated tooling is currently in the works that will fix these errors. This tooling will be available before the mandatory switch |
| - | - Go [[https:// | + | |
| - | - In the root of your gradle | + | ===== Migrating to Mojang Mappings ===== |
| + | |||
| + | These instructions cover migration from Yarn to Mojang Mappings. | ||
| + | |||
| + | - You'll need a command | ||
| + | - Run the command in the root of your Gradle | ||
| - Your migrated sources will appear in '' | - Your migrated sources will appear in '' | ||
| - Copy the sources from '' | - Copy the sources from '' | ||
| - | - Update | + | - If you are coming from Yarn, you can now replace |
| - Refresh the Gradle project in your IDE. | - Refresh the Gradle project in your IDE. | ||
| - Check and update any Mixin targets that may be outdated. | - Check and update any Mixin targets that may be outdated. | ||
| - | === Additional customization | + | ===== Migrating |
| - | * Specify from where to take your Java files with '' | + | |
| - | * Specify where to output the remapped source with '' | + | |
| - | * Specify a custom place to retrieve the mappings from with '' | + | |
| - | === Reporting issues === | + | These instructions cover migration from Mojang Mappings (or an older version of Yarn) to Yarn. |
| - | Loom uses [[https:// | + | |
| - | ===== Loom 0.2.2-0.2.5 ===== | + | - Go [[https:// |
| + | | ||
| + | - Your migrated sources will appear in '' | ||
| + | - Copy the sources from '' | ||
| + | - Update or add to your gradle.properties file with the Yarn version specified on [[https:// | ||
| + | - If you are coming from Mojang Mappings, you can now replace your mappings in your build.gradle with Yarn's (i.e. '' | ||
| + | - Refresh the Gradle project in your IDE. | ||
| + | - Check and update any Mixin targets that may be outdated. | ||
| - | Some assembly required. | ||
| - | - Figure out your target mappings version. For example, " | ||
| - | - Make sure the mappings for this version get created. This is the hacky part, as currently the only way to do it is to edit the " | ||
| - | - Run the following magical wizardry command: '' | ||
| - | * " | ||
| - | * " | ||
| - | * " | ||
| - | - Copy the remapped source code to the input directory, if everything' | ||
| - | - Hope for the best. | ||
| - | //Note: You may need to specify | + | === Additional customization === |
| + | * Specify from where to take your Java files with '' | ||
| + | * Specify where to output the remapped source with '' | ||
| + | * Specify a custom place to retrieve the mappings from with '' | ||
| - | This should work across Minecraft versions as well, provided we haven' | + | === Reporting issues === |
| + | Loom uses a fork of [[https:// | ||
tutorial/migratemappings.1596047283.txt.gz · Last modified: 2020/07/29 18:28 by florens