public interface IASMHook
| Modifier and Type | Method and Description |
|---|---|
org.objectweb.asm.tree.ClassNode[] |
inject(org.objectweb.asm.tree.ClassNode modClassNode)
Inject the
Mod class node into this instance. |
void |
modifyClass(java.lang.String className,
org.objectweb.asm.tree.ClassNode node)
Allow mods to manipulate classes loaded from this
Mod's jar file. |
org.objectweb.asm.tree.ClassNode[] inject(org.objectweb.asm.tree.ClassNode modClassNode)
Mod class node into this instance. This allows retrieval from custom
attributes or other artifacts in your mod classmodClassNode - The mod classvoid modifyClass(java.lang.String className,
org.objectweb.asm.tree.ClassNode node)
Mod's jar file. The Mod
class is always guaranteed to be called first.
The node state should be changed in place.node - The class being loaded