Klasse ClassTransform

java.lang.Object
de.florianmichael.asmfabricloader.loader.feature.ClassTransform

public final class ClassTransform extends Object
  • Konstruktordetails

    • ClassTransform

      public ClassTransform(Collection<net.fabricmc.loader.api.ModContainer> modContainers)
  • Methodendetails

    • hasJavaTransformers

      public boolean hasJavaTransformers(net.fabricmc.loader.api.ModContainer mod)
      Returns true if the mod has java transformers
      Parameter:
      mod - The mod to check
      Gibt zurück:
      If the mod has java transformers
    • registerJavaTransformer

      public void registerJavaTransformer(net.fabricmc.loader.api.ModContainer mod, String folder, String... paths) throws IllegalArgumentException
      Registers a java transformer
      Parameter:
      folder - The folder of the transformer
      paths - The paths to the transformer
      Löst aus:
      IllegalArgumentException
    • registerJavaTransformer

      public void registerJavaTransformer(net.fabricmc.loader.api.ModContainer mod, String path) throws IllegalArgumentException
      Registers a java transformer
      Parameter:
      path - The path to the transformer
      Löst aus:
      IllegalArgumentException
    • isTransforming

      public boolean isTransforming(net.fabricmc.loader.api.ModContainer mod)
      Returns true if the mod is transforming classes
      Parameter:
      mod - The mod to check
      Gibt zurück:
      If the mod is transforming classes
    • getTransformers

      public List<ClassTransformJson> getTransformers(net.fabricmc.loader.api.ModContainer mod) throws IllegalArgumentException
      Returns the transformer config for a mod
      Parameter:
      mod - The mod to get the config for
      Gibt zurück:
      The transformer config for the mod or null if the mod is not transforming classes
      Löst aus:
      IllegalArgumentException
    • getTransformerCount

      public int getTransformerCount(net.fabricmc.loader.api.ModContainer mod, boolean java, boolean mixin) throws IllegalArgumentException
      Returns the amount of transformers for a mod
      Parameter:
      mod - The mod to get the transformer count for
      java - If java transformers should be counted
      mixin - If mixin transformers should be counted
      Gibt zurück:
      The amount of transformers for the mod
      Löst aus:
      IllegalArgumentException
    • getAllTransformerCount

      public int getAllTransformerCount(boolean java, boolean mixin)
      Returns the amount of transformers for all mods
      Parameter:
      java - If java transformers should be counted
      mixin - If mixin transformers should be counted
      Gibt zurück:
      The amount of transformers for all mods
    • getAllTransformers

      public List<String> getAllTransformers(boolean java, boolean mixin)
      Returns all transformers for all mods
      Parameter:
      java - If java transformers should be returned
      mixin - If mixin transformers should be returned
      Gibt zurück:
      All transformers for all mods
    • getJavaTransformerManager

      public net.lenni0451.classtransform.TransformerManager getJavaTransformerManager(net.fabricmc.loader.api.ModContainer mod)