tutorial:accesswideners
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:accesswideners [2021/02/24 01:30] – Make it clearer what namespace means oroarmor | tutorial:accesswideners [2021/10/26 12:14] – modmuss50 | ||
---|---|---|---|
Line 15: | Line 15: | ||
* Fabric-loader 0.8.0 or higher | * Fabric-loader 0.8.0 or higher | ||
* Loom 0.2.7 or higher | * Loom 0.2.7 or higher | ||
- | + | ===== File format ===== | |
- | sn===== File format ===== | + | |
A specific file format is used to define the access changes included in your mod. To aid IDE's you should use the '' | A specific file format is used to define the access changes included in your mod. To aid IDE's you should use the '' | ||
- | The file must start with the following header, '' | + | The file must start with the following header, '' |
<code [enable_line_numbers=" | <code [enable_line_numbers=" | ||
Line 26: | Line 25: | ||
</ | </ | ||
- | **Once again, the namespace should | + | **Once again, the namespace should |
Access widener files can have blank lines and comments starting with # | Access widener files can have blank lines and comments starting with # | ||
Line 107: | Line 106: | ||
The access widener file location must be specified in your build.gradle and in your fabric.mod.json file. It should be stored in the resources as it needs to be included in the exported jar file. | The access widener file location must be specified in your build.gradle and in your fabric.mod.json file. It should be stored in the resources as it needs to be included in the exported jar file. | ||
+ | |||
+ | Loom 0.9 or higher: | ||
<code groovy [enable_line_numbers=" | <code groovy [enable_line_numbers=" | ||
- | minecraft | + | loom { |
- | accessWidener | + | accessWidenerPath |
} | } | ||
</ | </ | ||
+ | |||
+ | Loom 0.8 or lower: | ||
+ | |||
+ | <code groovy [enable_line_numbers=" | ||
+ | loom { | ||
+ | accessWidener = file(" | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | fabric.mod.json: | ||
<code json [enable_line_numbers=" | <code json [enable_line_numbers=" |
tutorial/accesswideners.txt · Last modified: 2024/06/09 05:33 by haykam