Tweak IASM hook api. You can return multiple classes now.

This commit is contained in:
Christian 2013-02-26 15:04:45 -05:00
parent e4dd3791ef
commit e7b1242cfb
1 changed files with 4 additions and 3 deletions

View File

@ -8,12 +8,13 @@ public interface IASMHook {
* attributes or other artifacts in your mod class
*
* @param modClassNode The mod class
* @return optionally a code generated class that will be injected into the classloader
* @return optionally some code generated classes that will be injected into the classloader
*/
ClassNode inject(ClassNode modClassNode);
ClassNode[] inject(ClassNode modClassNode);
/**
* Allow mods to manipulate classes loaded from this {@link Mod}'s jar file. The {@link Mod}
* class is always guaranteed to be called first
* class is always guaranteed to be called first.
* The node state should be changed in place.
*
* @param node The class being loaded
*/