tutorial:accesswideners
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:accesswideners [2023/01/21 07:46] – [Access Changes] You must use both mutable and accessible to make a private field both mutable and accessible bluemeanial | tutorial:accesswideners [2024/04/01 19:23] – [Access Wideners] explain that to have access wideners show up in the IDE the programmer must refresh the gradle project. matjojo | ||
---|---|---|---|
Line 8: | Line 8: | ||
* If you want to subclass a class with only (package) private constructors, | * If you want to subclass a class with only (package) private constructors, | ||
- | In order for access widener changes to show up in the decompiled source, run the '' | + | In order for access widener changes to show up in the decompiled source, run the '' |
===== Requirements ===== | ===== Requirements ===== | ||
Line 17: | Line 17: | ||
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=" | ||
- | accessWidener v1 < | + | accessWidener |
</ | </ | ||
Line 136: | Line 136: | ||
By default, accesswidener entries that don't exist are ignored. | By default, accesswidener entries that don't exist are ignored. | ||
On recent versions of Loom, you can run '' | On recent versions of Loom, you can run '' | ||
+ | |||
+ | The error messages can be a little cryptic. For example, if you make a mistake in specifying a field, the error doesn' | ||
+ | |||
+ | ===== V2 changes ===== | ||
+ | |||
+ | With the v2 version, the '' | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | They differ from their regular, non-prefixed variants in that they also apply to mods that depend on this one. | ||
+ | |||
+ | |||
+ |
tutorial/accesswideners.txt · Last modified: 2024/04/29 21:00 by ayutac