User Tools

Site Tools


tutorial:accesswideners

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
tutorial:accesswideners [2020/06/12 01:01] – inner classes need $ not / lvanderzandetutorial:accesswideners [2020/06/15 05:53] – explain how to remap the access widener in Loom with custom task wornitskeyitem
Line 11: Line 11:
 ===== File format ===== ===== 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 `.accesswidenerfile extension.+A specific file format is used to define the access changes included in your mod. To aid IDE's you should use the ''.accesswidener'' file extension.
  
-The file must start with the following header, `namespaceshould match the mappings namespace of your mod's source code, this is usually `named` loom will remap the access widener file for you into `intermediaryalong with your mod.+The file must start with the following header, ''namespace'' should match the mappings namespace of your mod's source code, this is usually ''named''. Loom will remap the access widener file for you into ''intermediary'' along with your mod. If you use a custom ''RemapJarTask'', set ''remapAccessWidener'' property on it to ''true'' to ensure this happens.
  
 <code [enable_line_numbers="true"]> <code [enable_line_numbers="true"]>
Line 101: Line 101:
 <code groovy [enable_line_numbers="true"]> <code groovy [enable_line_numbers="true"]>
 minecraft { minecraft {
- accessWidener = file("src/main/resources/modid.accesswidener")+ accessWidener "src/main/resources/modid.accesswidener"
 } }
 </code> </code>
tutorial/accesswideners.txt · Last modified: 2024/04/29 21:00 by ayutac