Class TargetType<T>

java.lang.Object
cpw.mods.modlauncher.api.TargetType<T>

public final class TargetType<T> extends Object
Specifies the target type for the ITransformer.Target. Note that the type of the transformer T dictates what are acceptable targets for this transformer.
  • Field Details

    • PRE_CLASS

      public static final TargetType<org.objectweb.asm.tree.ClassNode> PRE_CLASS
      Target a class, before field and method transforms operate. SHOULD ONLY BE USED to "replace" a complete class The ITransformer T variable must refer to ClassNode
    • CLASS

      public static final TargetType<org.objectweb.asm.tree.ClassNode> CLASS
      Target a class. The ITransformer T variable must refer to ClassNode
    • METHOD

      public static final TargetType<org.objectweb.asm.tree.MethodNode> METHOD
      Target a method. The ITransformer T variable must refer to MethodNode
    • FIELD

      public static final TargetType<org.objectweb.asm.tree.FieldNode> FIELD
      Target a field. The ITransformer T variable must refer to FieldNode
    • VALUES

      public static final TargetType<?>[] VALUES
    • name

      private final String name
    • nodeType

      private final Class<T> nodeType
  • Constructor Details

    • TargetType

      private TargetType(String name, Class<T> nodeType)
  • Method Details