tutorial:migratemappings
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
tutorial:migratemappings [2019/07/01 20:06] – modmuss50 | tutorial:migratemappings [2020/02/22 15:31] – Some structural cleanup, mention that Mixins are not remapped jamieswhiteshirt | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Updating Yarn mappings in a Java codebase ====== | ====== Updating Yarn mappings in a Java codebase ====== | ||
- | ===== The Hacky Way ===== | + | 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. |
- | ==== Requirements ==== | + | **Note:** This automated process currently only applies to most Java code. It will not automatically migrate mappings for Mixin targets or for code written in other language such as Kotlin or Scala. |
- | * Fabric-Loom 0.2.2 or above | + | ===== Loom 0.2.6 and above ===== |
- | * A Java codebase - Kotlin and Scala will not, currently, do. | + | |
- | * Some assembly required | + | |
- | ==== Instructions | + | Say you want to migrate from 1.14.4 to 19w46b. |
+ | |||
+ | - Go [[https:// | ||
+ | - In the root of your gradle project, run '' | ||
+ | - Your migrated sources will appear in '' | ||
+ | - Copy the sources from '' | ||
+ | - Update your gradle.properties file according to the instructions in [[https:// | ||
+ | - Refresh the Gradle project in your IDE. | ||
+ | - Check and update any Mixin targets that may be outdated. | ||
+ | |||
+ | === 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 '' | ||
+ | |||
+ | === Reporting issues === | ||
+ | Loom uses [[https:// | ||
+ | |||
+ | ===== Loom 0.2.2-0.2.5 ===== | ||
+ | |||
+ | Some assembly required. | ||
- Figure out your target mappings version. For example, " | - Figure out your target mappings version. For example, " | ||
Line 17: | Line 35: | ||
* " | * " | ||
* " | * " | ||
- | - Copy the remapped source code to the input directory, if everything' | + | - Copy the remapped source code to the input directory, if everything' |
- Hope for the best. | - Hope for the best. | ||
Line 24: | Line 42: | ||
This should work across Minecraft versions as well, provided we haven' | This should work across Minecraft versions as well, provided we haven' | ||
- | ===== The Non-Hacky Way ===== | ||
- | |||
- | Coming soon! (Hopefully.) |
tutorial/migratemappings.txt · Last modified: 2022/12/22 16:23 by basil4088