Class ConsumerListener<T>
java.lang.Object
meteordevelopment.orbit.listeners.ConsumerListener<T>
- All Implemented Interfaces:
IListener
Listener that takes in a
Consumer.-
Constructor Summary
ConstructorsConstructorDescriptionConsumerListener(Class<T> target, int priority, Consumer<T> executor) ConsumerListener(Class<T> target, Consumer<T> executor) -
Method Summary
-
Constructor Details
-
ConsumerListener
-
ConsumerListener
-
-
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()
-