User Tools

Site Tools


tutorial:mappings

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
tutorial:mappings [2019/10/10 18:57] – Custom mappings liachtutorial:mappings [2020/08/25 07:22] – Add mojmap earthcomputer
Line 24: Line 24:
   * **The '-dev' jar (the ''jar'' task output) does not use intermediary names, and is therefore not useful.** It cannot be installed as a mod outside a development environment and will only work in a development environment with matching mappings. The regular jar (the ''remapJar'' task output) should be used instead and installed in development environments using mod-augmented dependency configurations like ''modCompile''.   * **The '-dev' jar (the ''jar'' task output) does not use intermediary names, and is therefore not useful.** It cannot be installed as a mod outside a development environment and will only work in a development environment with matching mappings. The regular jar (the ''remapJar'' task output) should be used instead and installed in development environments using mod-augmented dependency configurations like ''modCompile''.
   * **Yarn names are only applied in a development environment**. Outside a development environment, only intermediary names exist, meaning the code will not match exactly what you see and wrote. Loom transparently handles this transition for you, but be cautious when using reflection.   * **Yarn names are only applied in a development environment**. Outside a development environment, only intermediary names exist, meaning the code will not match exactly what you see and wrote. Loom transparently handles this transition for you, but be cautious when using reflection.
 +
 +=== Mojang's mappings ===
 +
 +As of Loom 0.5, you can also use Mojang's official mappings rather than Yarn, like this:
 +
 +<code>
 +dependencies {
 +    [...]
 +    mappings "com.mojang.minecraft:mappings:${project.minecraft_version}"
 +}
 +</code>
 +
 +Mojang's mappings come with a usable yet more restrictive license than Yarn. Use them at your own risk.
  
  
tutorial/mappings.txt · Last modified: 2022/05/22 08:38 by daomephsta