Class ProcessNMSMeta

java.lang.Object
de.icongmbh.oss.maven.plugin.javassist.ClassTransformer
dev.jorel.commandapi.preprocessor.ProcessNMSMeta
All Implemented Interfaces:
javassist.build.IClassTransformer

public class ProcessNMSMeta extends de.icongmbh.oss.maven.plugin.javassist.ClassTransformer
Conceptually, it should be possible to use javassist to "dynamically generate" the "similar" NMS for specific classes. For example, 1.13 and 1.13.1 share a lot of very similar code, so it should be possible to generate a "template" and then modify the imports post-compile time to what we want
  • Constructor Details

    • ProcessNMSMeta

      public ProcessNMSMeta()
  • Method Details

    • shouldTransform

      public boolean shouldTransform(javassist.CtClass candidateClass) throws javassist.build.JavassistBuildException
      Throws:
      javassist.build.JavassistBuildException
    • applyTransformations

      public void applyTransformations(javassist.CtClass classToTransform) throws javassist.build.JavassistBuildException
      Throws:
      javassist.build.JavassistBuildException
    • configure

      public void configure(Properties properties)
      Overrides:
      configure in class de.icongmbh.oss.maven.plugin.javassist.ClassTransformer