tutorial:migratemappings
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tutorial:migratemappings [2022/12/22 16:23] – Add reference to tutorial:mappings in case people want to know more about how they work basil4088 | 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: | + | Loom allows semi-automatic updating of the mappings used in a Java codebase. |
| - | ===== Loom 0.2.6 and above ===== | + | Loom does not support migrating code written in Kotlin. [[https:// |
| - | Say you want to migrate from 1.16.5 yarn to 1.17.1 yarn. | + | **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:// | + | |
| - | - Run the command in the root of your Gradle project. | + | ===== 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 project, either through the terminal, or by adding it as a run configuration in IntelliJ Idea. | ||
| - 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. | ||
| - | If you want to go from Mojang's official mappings, AKA mojmap, to yarn, make sure your mappings in '' | + | ===== Migrating |
| + | |||
| + | These instructions cover migration | ||
| + | |||
| + | - Go [[https:// | ||
| + | - Run the command in the root of your Gradle project, either through the terminal, or by adding it as a run configuration in IntelliJ Idea. | ||
| + | - 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. | ||
| + | |||
| === Additional customization === | === Additional customization === | ||
| Line 25: | Line 43: | ||
| === Reporting issues === | === Reporting issues === | ||
| - | Loom uses [[https:// | + | Loom uses a fork of [[https:// |
| - | + | ||
| - | ===== Loom 0.2.2-0.2.5 ===== | + | |
| - | + | ||
| - | 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 the full paths in quotes, try this if you get file not found issues.// | + | |
| - | + | ||
| - | This should work across Minecraft versions as well, provided we haven' | + | |
tutorial/migratemappings.1671726181.txt.gz · Last modified: 2022/12/22 16:23 by basil4088