From e7b1242cfbe45ecca16aca08c503c8fd62aeaf8e Mon Sep 17 00:00:00 2001 From: Christian Date: Tue, 26 Feb 2013 15:04:45 -0500 Subject: [PATCH] Tweak IASM hook api. You can return multiple classes now. --- fml/common/cpw/mods/fml/common/IASMHook.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fml/common/cpw/mods/fml/common/IASMHook.java b/fml/common/cpw/mods/fml/common/IASMHook.java index dbfd47b95..d445d1ead 100644 --- a/fml/common/cpw/mods/fml/common/IASMHook.java +++ b/fml/common/cpw/mods/fml/common/IASMHook.java @@ -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 */