Class ConsumerListener<T>
- java.lang.Object
-
- meteordevelopment.orbit.listeners.ConsumerListener<T>
-
-
Constructor Summary
Constructors Constructor Description ConsumerListener(java.lang.Class<?> target, int priority, java.util.function.Consumer<T> executor)ConsumerListener(java.lang.Class<?> target, java.util.function.Consumer<T> executor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcall(java.lang.Object event)Calls the listener with the specified event.intgetPriority()java.lang.Class<?>getTarget()booleanisStatic()
-
-
-
Method Detail
-
call
public void call(java.lang.Object event)
Description copied from interface:IListenerCalls the listener with the specified event.
-
getTarget
public java.lang.Class<?> getTarget()
-
getPriority
public int getPriority()
- Specified by:
getPriorityin interfaceIListener- Returns:
- The priority for this listener
-
-