Interface IMixinInfo
public interface IMixinInfo
Interface for MixinInfo, used in extensibility API
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]Get the class bytecodeGet the name of the mixin classorg.objectweb.asm.tree.ClassNodegetClassNode(int flags) Get a new tree for the class bytecodeGet the ref (internal name) of the mixin classGet the config to which this mixin belongsgetName()Get the simple name of the mixingetPhase()Get the mixin phaseintGet the mixin priorityGet the target classes for this mixinbooleanTrue if the superclass of the mixin is not the direct superclass of one or more targets.
-
Method Details
-
getConfig
IMixinConfig getConfig()Get the config to which this mixin belongs- Returns:
- the mixin config
-
getName
String getName()Get the simple name of the mixin- Returns:
- the simple name (mixin tail minus the package)
-
getClassName
String getClassName()Get the name of the mixin class- Returns:
- mixin class name
-
getClassRef
String getClassRef()Get the ref (internal name) of the mixin class- Returns:
- mixin class ref (internal name)
-
getClassBytes
byte[] getClassBytes()Get the class bytecode- Returns:
- mixin bytecode (raw bytecode after transformers)
-
isDetachedSuper
boolean isDetachedSuper()True if the superclass of the mixin is not the direct superclass of one or more targets.- Returns:
- true if the mixin has a detached superclass
-
getClassNode
org.objectweb.asm.tree.ClassNode getClassNode(int flags) Get a new tree for the class bytecode- Parameters:
flags- Flags to pass to the ClassReader- Returns:
- get a new ClassNode representing the mixin's bytecode
-
getTargetClasses
Get the target classes for this mixin- Returns:
- list of target classes
-
getPriority
int getPriority()Get the mixin priority- Returns:
- the priority
-
getPhase
MixinEnvironment.Phase getPhase()Get the mixin phase- Returns:
- the phase
-