tutorial:mappings
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
tutorial:mappings [2019/10/10 18:57] – Custom mappings liach | tutorial:mappings [2021/11/18 00:59] – [Remapping] liach | ||
---|---|---|---|
Line 24: | Line 24: | ||
* **The ' | * **The ' | ||
* **Yarn names are only applied in a development environment**. Outside a development environment, | * **Yarn names are only applied in a development environment**. Outside a development environment, | ||
+ | |||
+ | === Mojang' | ||
+ | |||
+ | As of Loom 0.5, you can also use Mojang' | ||
+ | |||
+ | < | ||
+ | dependencies { | ||
+ | [...] | ||
+ | mappings loom.officialMojangMappings() | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | Mojang' | ||
Line 42: | Line 55: | ||
==== Remapping ==== | ==== Remapping ==== | ||
- | Remapping is the process of applying mappings to code, transforming from one set of names to another. Both Java source code and compiled Java code can be remapped. It involves changing the names of references according to the mappings, as well as carefully renaming methods to preserve overrides. It does not change what the code does, although it will affect names used in reflection. | + | Remapping is the process of applying mappings to code, transforming from one set of names to another. Both Java source code and compiled Java code can be remapped. It involves changing the names of references according to the mappings, as well as carefully renaming methods to preserve overrides. It does not change what the code does, although it will affect names used in [[tutorial:reflection|reflection]]. |
[[https:// | [[https:// |
tutorial/mappings.txt · Last modified: 2022/05/22 08:38 by daomephsta