Class LambdaListener
java.lang.Object
meteordevelopment.orbit.listeners.LambdaListener
- All Implemented Interfaces:
IListener
Default implementation of a
IListener that creates a lambda at runtime to call the target method.-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionLambdaListener(LambdaListener.Factory factory, Class<?> klass, Object object, Method method) Creates a new lambda listener, can be used for both static and non-static methods. -
Method Summary
-
Constructor Details
-
LambdaListener
Creates a new lambda listener, can be used for both static and non-static methods.- Parameters:
klass- Class of the objectobject- Object, null if staticmethod- Method to create lambda for
-
-
Method Details
-
call
Description copied from interface:IListenerCalls the listener with the specified event. -
getTarget
-
getPriority
public int getPriority()- Specified by:
getPriorityin interfaceIListener- Returns:
- The priority for this listener
-
isStatic
public boolean isStatic()
-