Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
C
- call(Object) - Method in class meteordevelopment.orbit.listeners.ConsumerListener
- call(Object) - Method in interface meteordevelopment.orbit.listeners.IListener
-
Calls the listener with the specified event.
- call(Object) - Method in class meteordevelopment.orbit.listeners.LambdaListener
- cancel() - Method in interface meteordevelopment.orbit.ICancellable
-
Cancels this event.
- ConsumerListener<T> - Class in meteordevelopment.orbit.listeners
-
Listener that takes in a
Consumer. - ConsumerListener(Class<T>, int, Consumer<T>) - Constructor for class meteordevelopment.orbit.listeners.ConsumerListener
- ConsumerListener(Class<T>, Consumer<T>) - Constructor for class meteordevelopment.orbit.listeners.ConsumerListener
- create(Method, Class<?>) - Method in interface meteordevelopment.orbit.listeners.LambdaListener.Factory
E
- EventBus - Class in meteordevelopment.orbit
-
Default implementation of
IEventBus. - EventBus() - Constructor for class meteordevelopment.orbit.EventBus
- EventHandler - Annotation Interface in meteordevelopment.orbit
-
Used to mark listeners.
- EventPriority - Class in meteordevelopment.orbit
-
Default event priorities.
- EventPriority() - Constructor for class meteordevelopment.orbit.EventPriority
G
- getPriority() - Method in class meteordevelopment.orbit.listeners.ConsumerListener
- getPriority() - Method in interface meteordevelopment.orbit.listeners.IListener
- getPriority() - Method in class meteordevelopment.orbit.listeners.LambdaListener
- getTarget() - Method in class meteordevelopment.orbit.listeners.ConsumerListener
- getTarget() - Method in interface meteordevelopment.orbit.listeners.IListener
- getTarget() - Method in class meteordevelopment.orbit.listeners.LambdaListener
H
- HIGH - Static variable in class meteordevelopment.orbit.EventPriority
- HIGHEST - Static variable in class meteordevelopment.orbit.EventPriority
I
- ICancellable - Interface in meteordevelopment.orbit
-
Cancellable events need to implement this interface.
- IEventBus - Interface in meteordevelopment.orbit
-
Manages event listeners.
- IListener - Interface in meteordevelopment.orbit.listeners
-
Base type for all listeners.
- isCancelled() - Method in interface meteordevelopment.orbit.ICancellable
- isListening(Class<?>) - Method in class meteordevelopment.orbit.EventBus
- isListening(Class<?>) - Method in interface meteordevelopment.orbit.IEventBus
-
Returns whether at least one event listener is currently registered for this event type.
- isStatic() - Method in class meteordevelopment.orbit.listeners.ConsumerListener
- isStatic() - Method in interface meteordevelopment.orbit.listeners.IListener
-
Deprecated.Will be removed in a future version
- isStatic() - Method in class meteordevelopment.orbit.listeners.LambdaListener
L
- LambdaListener - Class in meteordevelopment.orbit.listeners
-
Default implementation of a
IListenerthat creates a lambda at runtime to call the target method. - LambdaListener(LambdaListener.Factory, Class<?>, Object, Method) - Constructor for class meteordevelopment.orbit.listeners.LambdaListener
-
Creates a new lambda listener, can be used for both static and non-static methods.
- LambdaListener.Factory - Interface in meteordevelopment.orbit.listeners
- LOW - Static variable in class meteordevelopment.orbit.EventPriority
- LOWEST - Static variable in class meteordevelopment.orbit.EventPriority
M
- MEDIUM - Static variable in class meteordevelopment.orbit.EventPriority
- meteordevelopment.orbit - package meteordevelopment.orbit
- meteordevelopment.orbit.listeners - package meteordevelopment.orbit.listeners
N
- NoLambdaFactoryException - Exception in meteordevelopment.orbit
-
Thrown when an
IEventBuscan't find a registered lambda factory to use. - NoLambdaFactoryException(Class<?>) - Constructor for exception meteordevelopment.orbit.NoLambdaFactoryException
P
- post(T) - Method in class meteordevelopment.orbit.EventBus
- post(T) - Method in interface meteordevelopment.orbit.IEventBus
-
Posts an event to all subscribed event listeners.
- priority() - Element in annotation interface meteordevelopment.orbit.EventHandler
R
- registerLambdaFactory(String, LambdaListener.Factory) - Method in class meteordevelopment.orbit.EventBus
- registerLambdaFactory(String, LambdaListener.Factory) - Method in interface meteordevelopment.orbit.IEventBus
-
Registers a lambda factory to use with the specified package.
S
- setCancelled(boolean) - Method in interface meteordevelopment.orbit.ICancellable
-
Sets if this event is cancelled.
- subscribe(Class<?>) - Method in class meteordevelopment.orbit.EventBus
- subscribe(Class<?>) - Method in interface meteordevelopment.orbit.IEventBus
-
Finds all correct (static only) methods with
EventHandlerannotation and subscribes them. - subscribe(Object) - Method in class meteordevelopment.orbit.EventBus
- subscribe(Object) - Method in interface meteordevelopment.orbit.IEventBus
-
Finds all correct (static and non-static) methods with
EventHandlerannotation and subscribes them. - subscribe(IListener) - Method in class meteordevelopment.orbit.EventBus
- subscribe(IListener) - Method in interface meteordevelopment.orbit.IEventBus
-
Subscribes the listener (both static and non-static).
U
- unsubscribe(Class<?>) - Method in class meteordevelopment.orbit.EventBus
- unsubscribe(Class<?>) - Method in interface meteordevelopment.orbit.IEventBus
-
Finds all correct (static only) methods with
EventHandlerannotation and unsubscribes them. - unsubscribe(Object) - Method in class meteordevelopment.orbit.EventBus
- unsubscribe(Object) - Method in interface meteordevelopment.orbit.IEventBus
-
Finds all correct (static and non-static) methods with
EventHandlerannotation and unsubscribes them. - unsubscribe(IListener) - Method in class meteordevelopment.orbit.EventBus
- unsubscribe(IListener) - Method in interface meteordevelopment.orbit.IEventBus
-
Unsubscribes the listener (both static and non-static).
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form