Class Transformation

java.lang.Object
juuxel.unprotect.Transformation

public final class Transformation extends Object
  • Field Details

    • TARGET_SYSTEM_PROPERTY

      public static final String TARGET_SYSTEM_PROPERTY
      A system property ("unprotect.target") for determining which classes to transform.

      Possible values (case-insensitive with respect to Locale.ROOT):

      • all: apply to all classes
      • minecraft+forge (default): apply to Minecraft and (Neo)Forge classes
      • none: disable Unprotect completely and apply to no classes
      Since:
      1.1.0
      See Also:
    • MAPPING_LOCATION_SYSTEM_PROPERTY

      public static final String MAPPING_LOCATION_SYSTEM_PROPERTY
      A system property ("unprotect.mappings") for determining where to load mappings for the minecraft+forge target.

      The value should be a file path to a zip containing the mapping files at mappings/mappings.tiny in Tiny v2 format. It can also be a list of file paths separated by File.pathSeparator, of which the first suitable one will be used.

      If absent, Unprotect will try to load them from the classpath at the same file path.

      Since:
      1.2.0
      See Also:
  • Constructor Details

    • Transformation

      public Transformation(String backendName)
  • Method Details

    • handlesClass

      public boolean handlesClass(org.objectweb.asm.Type classType, boolean isEmpty)
    • processClass

      public boolean processClass(org.objectweb.asm.tree.ClassNode classNode)