Interface MixinConfig
- All Superinterfaces:
MixinSourceSetConfig
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidAdd a Mixin configdefault voidAdd a Mixin configdefault org.gradle.api.tasks.TaskProvider<MergeMappings> generatedMappings(org.gradle.api.Action<? super MergeMappings> action) Helper method for configuring the generated mappings task.org.gradle.api.provider.ListProperty<String> org.gradle.api.tasks.TaskProvider<MergeMappings> Gets the task that merges all generated extra mappings merged together.org.gradle.api.tasks.TaskProvider<ConvertMappings> Gets the task that converts a mapping file into the format needed by the Annotation Processor This can be used to customize what mappings are applied.voidjar(org.gradle.api.tasks.TaskProvider<org.gradle.api.tasks.bundling.Jar> provider) Configures a Jar task with Mixin related values.default org.gradle.api.tasks.TaskProvider<ConvertMappings> mappings(org.gradle.api.Action<? super ConvertMappings> action) Configures thegetMappings()task, which is used to format mappings so that the Mixin AnnotationProcessor can handle them.voidAdds The following to the specified ForgeGradle run config: Args:default MixinSourceSetConfigsource(org.gradle.api.tasks.SourceSet source) Add a source set to Mixin, automatically infers refmap namedefault MixinSourceSetConfigAdd a source set to Mixinsource(org.gradle.api.tasks.SourceSet source, String name, org.gradle.api.Action<? super MixinSourceSetConfig> action) Add and source set to Mixin and configure itdefault MixinSourceSetConfigsource(org.gradle.api.tasks.SourceSet source, org.gradle.api.Action<? super MixinSourceSetConfig> action) Add and source set to Mixin and configure it, automatically infers refmap name
-
Method Details
-
getConfigs
org.gradle.api.provider.ListProperty<String> getConfigs() -
config
Add a Mixin config- Parameters:
name- path to config file, searches fromresources/
-
config
Add a Mixin config- Parameters:
name- path to config file, searches fromresources/
-
source
Add a source set to Mixin, automatically infers refmap name- Parameters:
source- source set to add
-
source
default MixinSourceSetConfig source(org.gradle.api.tasks.SourceSet source, org.gradle.api.Action<? super MixinSourceSetConfig> action) Add and source set to Mixin and configure it, automatically infers refmap name- Parameters:
source- source set to addaction- configuration for the source set
-
source
Add a source set to Mixin- Parameters:
source- source set to addname- prefix to the output refmap.json file
-
source
MixinSourceSetConfig source(org.gradle.api.tasks.SourceSet source, String name, org.gradle.api.Action<? super MixinSourceSetConfig> action) Add and source set to Mixin and configure it- Parameters:
source- source set to addname- prefix to the output refmap.json fileaction- configuration for the source set
-
run
Adds The following to the specified ForgeGradle run config:-
Args:
"--mixin-config [config]"- Tells Mixin to load specific configs, this is not needed if you specify hem in your Manifest file -
System Properties:
"mixin.env.remapRefMap: true"- Tells Mixin to remap refmaps when loading"mixin.env.refMapremappingFile: [map file]"- The mapping file used to generate the refmap
- Parameters:
runConfig-
-
Args:
-
jar
void jar(org.gradle.api.tasks.TaskProvider<org.gradle.api.tasks.bundling.Jar> provider) Configures a Jar task with Mixin related values. Specifically it adds a Manifest entry calledMixinConfigswith a comma separated list of config files. It also forces the inclusion of any refMap files for registered sourcesets- Parameters:
provider- The jar task provider
-
getGeneratedMappings
org.gradle.api.tasks.TaskProvider<MergeMappings> getGeneratedMappings()Gets the task that merges all generated extra mappings merged together. -
generatedMappings
default org.gradle.api.tasks.TaskProvider<MergeMappings> generatedMappings(org.gradle.api.Action<? super MergeMappings> action) Helper method for configuring the generated mappings task. The task will merge the input mappings, and the extra mappings generated by the Mixin AnnotationProcessor by default. -
getMappings
org.gradle.api.tasks.TaskProvider<ConvertMappings> getMappings()Gets the task that converts a mapping file into the format needed by the Annotation Processor This can be used to customize what mappings are applied. Defaults to convertingRenamerExtension.getMappings()to`tsrg` -
mappings
default org.gradle.api.tasks.TaskProvider<ConvertMappings> mappings(org.gradle.api.Action<? super ConvertMappings> action) Configures thegetMappings()task, which is used to format mappings so that the Mixin AnnotationProcessor can handle them.
-