Class AccessWidenerJarProcessor

java.lang.Object
net.fabricmc.loom.configuration.accesswidener.AccessWidenerJarProcessor
All Implemented Interfaces:
JarProcessor

public class AccessWidenerJarProcessor extends Object implements JarProcessor
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    Returns a unique ID for this jar processor, containing all configuration details.
    byte[]
    getRemappedAccessWidener​(org.objectweb.asm.commons.Remapper asmRemapper, String targetNamespace)
    Get this mods access widener remapped to the intermediary namespace.
    boolean
    isInvalid​(File file)
    Return true to make all jar processors run again, return false to use the existing results of jar processing.
    void
    process​(File file)
    Currently this is a destructive process that replaces the existing jar.
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AccessWidenerJarProcessor

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

    • getId

      public String getId()
      Description copied from interface: JarProcessor
      Returns a unique ID for this jar processor, containing all configuration details.

      If the jar processor implementation class supports creating multiple jar processors with different effects, the needed configuration should also be included in this ID. Example: path.to.MyJarProcessor#someOption.

      Specified by:
      getId in interface JarProcessor
      Returns:
      the ID of this jar processor
    • setup

      public void setup()
      Specified by:
      setup in interface JarProcessor
    • process

      public void process(File file)
      Description copied from interface: JarProcessor
      Currently this is a destructive process that replaces the existing jar.
      Specified by:
      process in interface JarProcessor
    • getRemappedAccessWidener

      public byte[] getRemappedAccessWidener(org.objectweb.asm.commons.Remapper asmRemapper, String targetNamespace) throws IOException
      Get this mods access widener remapped to the intermediary namespace.
      Throws:
      IOException
    • isInvalid

      public boolean isInvalid(File file)
      Description copied from interface: JarProcessor
      Return true to make all jar processors run again, return false to use the existing results of jar processing.
      Specified by:
      isInvalid in interface JarProcessor