public class ASMEventHandler extends java.lang.Object implements IEventListener
Modifier and Type | Class and Description |
---|---|
private static class |
ASMEventHandler.ASMClassLoader |
Modifier and Type | Field and Description |
---|---|
private static java.util.HashMap<java.lang.reflect.Method,java.lang.Class<?>> |
cache |
private java.lang.reflect.Type |
filter |
private static boolean |
GETCONTEXT |
private IEventListener |
handler |
private static java.lang.String |
HANDLER_DESC |
private static java.lang.String |
HANDLER_FUNC_DESC |
private static int |
IDs |
private static ASMEventHandler.ASMClassLoader |
LOADER |
private ModContainer |
owner |
private java.lang.String |
readable |
private SubscribeEvent |
subInfo |
Constructor and Description |
---|
ASMEventHandler(java.lang.Object target,
java.lang.reflect.Method method,
ModContainer owner)
Deprecated.
|
ASMEventHandler(java.lang.Object target,
java.lang.reflect.Method method,
ModContainer owner,
boolean isGeneric) |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
createWrapper(java.lang.reflect.Method callback) |
EventPriority |
getPriority() |
private java.lang.String |
getUniqueName(java.lang.reflect.Method callback) |
void |
invoke(Event event) |
java.lang.String |
toString() |
private static int IDs
private static final java.lang.String HANDLER_DESC
private static final java.lang.String HANDLER_FUNC_DESC
private static final ASMEventHandler.ASMClassLoader LOADER
private static final java.util.HashMap<java.lang.reflect.Method,java.lang.Class<?>> cache
private static final boolean GETCONTEXT
private final IEventListener handler
private final SubscribeEvent subInfo
private ModContainer owner
private java.lang.String readable
private java.lang.reflect.Type filter
@Deprecated public ASMEventHandler(java.lang.Object target, java.lang.reflect.Method method, ModContainer owner) throws java.lang.Exception
java.lang.Exception
public ASMEventHandler(java.lang.Object target, java.lang.reflect.Method method, ModContainer owner, boolean isGeneric) throws java.lang.Exception
java.lang.Exception
public void invoke(Event event)
invoke
in interface IEventListener
public EventPriority getPriority()
public java.lang.Class<?> createWrapper(java.lang.reflect.Method callback)
private java.lang.String getUniqueName(java.lang.reflect.Method callback)
public java.lang.String toString()
toString
in class java.lang.Object