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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTransformations(javassist.CtClass classToTransform) voidconfigure(Properties properties) booleanshouldTransform(javassist.CtClass candidateClass) Methods inherited from class de.icongmbh.oss.maven.plugin.javassist.ClassTransformer
getLogger
-
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
- Overrides:
configurein classde.icongmbh.oss.maven.plugin.javassist.ClassTransformer
-