Class MixinExtensionApiImpl

java.lang.Object
net.fabricmc.loom.extension.MixinExtensionApiImpl
All Implemented Interfaces:
MixinExtensionAPI
Direct Known Subclasses:
MixinExtensionImpl

public abstract class MixinExtensionApiImpl extends Object implements MixinExtensionAPI
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.gradle.api.Project
     
    protected org.gradle.api.provider.Property<Boolean>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    MixinExtensionApiImpl​(org.gradle.api.Project project)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add​(String sourceSetName)
    Apply Mixin AP to sourceSet.
    void
    add​(String sourceSetName, String refmapName)
    Apply Mixin AP to sourceSet.
    void
    add​(String sourceSetName, String refmapName, org.gradle.api.Action<org.gradle.api.tasks.util.PatternSet> action)
    Apply Mixin AP to sourceSet.
    void
    add​(String sourceSetName, org.gradle.api.Action<org.gradle.api.tasks.util.PatternSet> action)
    Apply Mixin AP to sourceSet.
    void
    add​(String sourceSetName, org.gradle.api.provider.Provider<String> refmapName, org.gradle.api.Action<org.gradle.api.tasks.util.PatternSet> action)
     
    void
    add​(org.gradle.api.tasks.SourceSet sourceSet)
    Apply Mixin AP to sourceSet.
    void
    add​(org.gradle.api.tasks.SourceSet sourceSet, String refmapName)
    Apply Mixin AP to sourceSet.
    void
    add​(org.gradle.api.tasks.SourceSet sourceSet, String refmapName, org.gradle.api.Action<org.gradle.api.tasks.util.PatternSet> action)
    Apply Mixin AP to sourceSet.
    void
    add​(org.gradle.api.tasks.SourceSet sourceSet, org.gradle.api.Action<org.gradle.api.tasks.util.PatternSet> action)
    Apply Mixin AP to sourceSet.
    void
    add​(org.gradle.api.tasks.SourceSet sourceSet, org.gradle.api.provider.Provider<String> refmapName, org.gradle.api.Action<org.gradle.api.tasks.util.PatternSet> action)
     
    protected org.gradle.api.tasks.util.PatternSet
    add0​(org.gradle.api.tasks.SourceSet sourceSet, String refmapName)
     
    protected abstract org.gradle.api.tasks.util.PatternSet
    add0​(org.gradle.api.tasks.SourceSet sourceSet, org.gradle.api.provider.Provider<String> refmapName)
     
    org.gradle.api.provider.Property<Boolean>
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.fabricmc.loom.api.MixinExtensionAPI

    getDefaultRefmapName
  • Field Details

    • project

      protected final org.gradle.api.Project project
    • useMixinAp

      protected final org.gradle.api.provider.Property<Boolean> useMixinAp
  • Constructor Details

    • MixinExtensionApiImpl

      public MixinExtensionApiImpl(org.gradle.api.Project project)
  • Method Details

    • add0

      protected final org.gradle.api.tasks.util.PatternSet add0(org.gradle.api.tasks.SourceSet sourceSet, String refmapName)
    • add0

      protected abstract org.gradle.api.tasks.util.PatternSet add0(org.gradle.api.tasks.SourceSet sourceSet, org.gradle.api.provider.Provider<String> refmapName)
    • getUseLegacyMixinAp

      public org.gradle.api.provider.Property<Boolean> getUseLegacyMixinAp()
      Specified by:
      getUseLegacyMixinAp in interface MixinExtensionAPI
    • add

      public void add(org.gradle.api.tasks.SourceSet sourceSet, String refmapName, org.gradle.api.Action<org.gradle.api.tasks.util.PatternSet> action)
      Description copied from interface: MixinExtensionAPI
      Apply Mixin AP to sourceSet.
      Specified by:
      add in interface MixinExtensionAPI
      Parameters:
      sourceSet - the sourceSet that applies Mixin AP.
      refmapName - the output ref-map name. By default this will be MixinExtensionAPI.getDefaultRefmapName()
      action - used for filter the mixin json files. By default this will be all files with name *.mixins.json that is inside the resources folder of sourceSet.
    • add

      public void add(org.gradle.api.tasks.SourceSet sourceSet, String refmapName)
      Description copied from interface: MixinExtensionAPI
      Apply Mixin AP to sourceSet. See MixinExtensionAPI.add(SourceSet, String, Action) for more detail.
      Specified by:
      add in interface MixinExtensionAPI
      Parameters:
      sourceSet - the sourceSet that applies Mixin AP.
      refmapName - the output ref-map name.
    • add

      public void add(String sourceSetName, String refmapName, org.gradle.api.Action<org.gradle.api.tasks.util.PatternSet> action)
      Description copied from interface: MixinExtensionAPI
      Apply Mixin AP to sourceSet. See MixinExtensionAPI.add(SourceSet, String, Action) for more detail.
      Specified by:
      add in interface MixinExtensionAPI
      Parameters:
      sourceSetName - the name of sourceSet that applies Mixin AP.
      refmapName - the output ref-map name.
      action - used for filter the mixin json files.
    • add

      public void add(String sourceSetName, org.gradle.api.provider.Provider<String> refmapName, org.gradle.api.Action<org.gradle.api.tasks.util.PatternSet> action)
    • add

      public void add(org.gradle.api.tasks.SourceSet sourceSet, org.gradle.api.provider.Provider<String> refmapName, org.gradle.api.Action<org.gradle.api.tasks.util.PatternSet> action)
    • add

      public void add(String sourceSetName, String refmapName)
      Description copied from interface: MixinExtensionAPI
      Apply Mixin AP to sourceSet. See MixinExtensionAPI.add(SourceSet, String, Action) for more detail.
      Specified by:
      add in interface MixinExtensionAPI
      Parameters:
      sourceSetName - the name of sourceSet that applies Mixin AP.
      refmapName - the output ref-map name.
    • add

      public void add(org.gradle.api.tasks.SourceSet sourceSet, org.gradle.api.Action<org.gradle.api.tasks.util.PatternSet> action)
      Description copied from interface: MixinExtensionAPI
      Apply Mixin AP to sourceSet. See MixinExtensionAPI.add(SourceSet, String, Action) for more detail.
      Specified by:
      add in interface MixinExtensionAPI
      Parameters:
      sourceSet - the sourceSet that applies Mixin AP.
      action - used for filter the mixin json files.
    • add

      public void add(org.gradle.api.tasks.SourceSet sourceSet)
      Description copied from interface: MixinExtensionAPI
      Apply Mixin AP to sourceSet. See MixinExtensionAPI.add(SourceSet, String, Action) for more detail.
      Specified by:
      add in interface MixinExtensionAPI
      Parameters:
      sourceSet - the sourceSet that applies Mixin AP.
    • add

      public void add(String sourceSetName, org.gradle.api.Action<org.gradle.api.tasks.util.PatternSet> action)
      Description copied from interface: MixinExtensionAPI
      Apply Mixin AP to sourceSet. See MixinExtensionAPI.add(SourceSet, String, Action) for more detail.
      Specified by:
      add in interface MixinExtensionAPI
      Parameters:
      sourceSetName - the name of sourceSet that applies Mixin AP.
      action - used for filter the mixin json files.
    • add

      public void add(String sourceSetName)
      Description copied from interface: MixinExtensionAPI
      Apply Mixin AP to sourceSet. See MixinExtensionAPI.add(SourceSet, String, Action) for more detail.
      Specified by:
      add in interface MixinExtensionAPI
      Parameters:
      sourceSetName - the name of sourceSet that applies Mixin AP.