Interface MixinConfig

All Superinterfaces:
MixinSourceSetConfig

public interface MixinConfig extends MixinSourceSetConfig
  • Method Details

    • getConfigs

      org.gradle.api.provider.ListProperty<String> getConfigs()
    • config

      default void config(String name)
      Add a Mixin config
      Parameters:
      name - path to config file, searches from resources/
    • config

      default void config(org.gradle.api.provider.Provider<String> name)
      Add a Mixin config
      Parameters:
      name - path to config file, searches from resources/
    • source

      default MixinSourceSetConfig source(org.gradle.api.tasks.SourceSet 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 add
      action - configuration for the source set
    • source

      default MixinSourceSetConfig source(org.gradle.api.tasks.SourceSet source, String name)
      Add a source set to Mixin
      Parameters:
      source - source set to add
      name - 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 add
      name - prefix to the output refmap.json file
      action - configuration for the source set
    • run

      void run(Object runConfig)
      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 -
    • 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 called MixinConfigs with 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 converting RenamerExtension.getMappings() to `tsrg`
    • mappings

      default org.gradle.api.tasks.TaskProvider<ConvertMappings> mappings(org.gradle.api.Action<? super ConvertMappings> action)
      Configures the getMappings() task, which is used to format mappings so that the Mixin AnnotationProcessor can handle them.