Skip navigation links
C E F G H I L N P R S T U W 

C

Cancellable - Interface in net.kyori.event
A cancellable event.
Cancellable.Impl - Class in net.kyori.event
An abstract implementation of a cancellable event.
cancelled() - Method in interface net.kyori.event.Cancellable
Tests if the event has been cancelled.
cancelled(boolean) - Method in interface net.kyori.event.Cancellable
Sets the cancelled state of the event.
cancelled - Variable in class net.kyori.event.Cancellable.Impl
 
cancelled() - Method in class net.kyori.event.Cancellable.Impl
 
cancelled(boolean) - Method in class net.kyori.event.Cancellable.Impl
 
consumeCancelledEvents() - Method in interface net.kyori.event.EventSubscriber
Gets if cancelled events should be posted to this subscriber.

E

EARLY - Static variable in interface net.kyori.event.PostOrders
Marks that the subscriber should be called before normal subscribers.
EventBus<E> - Interface in net.kyori.event
Base interface of the library, representing an object which accepts registration of EventSubscribers, and supports posting events to them.
eventCancelled(E) - Method in class net.kyori.event.SimpleEventBus
Returns if a given event instance is currently "cancelled".
eventGenericType(E) - Method in class net.kyori.event.SimpleEventBus
Gets the generic Type of a given event.
EventSubscriber<E> - Interface in net.kyori.event
A functional interface representing an object that can handle a given type of event.
eventType() - Method in interface net.kyori.event.EventBus
Gets the event type of the bus.
eventType() - Method in class net.kyori.event.SimpleEventBus
 
exceptions() - Method in class net.kyori.event.PostResult
Gets the exceptions that were thrown whilst posting the event to subscribers.

F

failure(Map<EventSubscriber<?>, Throwable>) - Static method in class net.kyori.event.PostResult
Marks that exceptions were thrown by subscribers.
FIRST - Static variable in interface net.kyori.event.PostOrders
Marks that the subscriber should be called first, before all other subscribers.

G

genericType() - Method in interface net.kyori.event.EventSubscriber
Gets the generic type of this subscriber, if it is known.

H

hasSubscribers(Class<T>) - Method in interface net.kyori.event.EventBus
Determines whether or not the specified event has subscribers.
hasSubscribers(Class<T>) - Method in class net.kyori.event.SimpleEventBus
 

I

Impl() - Constructor for class net.kyori.event.Cancellable.Impl
 
invoke(E) - Method in interface net.kyori.event.EventSubscriber
Invokes this event subscriber.

L

LAST - Static variable in interface net.kyori.event.PostOrders
Marks that the subscriber should be called last, after all other subscribers.
LATE - Static variable in interface net.kyori.event.PostOrders
Marks that the subscriber should be called after normal subscribers.

N

net.kyori.event - package net.kyori.event
 
NORMAL - Static variable in interface net.kyori.event.PostOrders
Marks that the subscriber should be called with no special priority.

P

post(E) - Method in interface net.kyori.event.EventBus
Posts an event to all registered subscribers.
post(E) - Method in class net.kyori.event.SimpleEventBus
 
postOrder() - Method in interface net.kyori.event.EventSubscriber
Gets the post order this subscriber should be called at.
PostOrders - Interface in net.kyori.event
The "post order" is a representation of the order, relative to other posts, that a given EventSubscriber should be posted events.
PostResult - Class in net.kyori.event
Encapsulates the outcome of a EventBus.post(Object) call.
PostResult.CompositeException - Exception in net.kyori.event
Exception encapsulating a combined failure.
printAllStackTraces() - Method in exception net.kyori.event.PostResult.CompositeException
Prints all of the stack traces involved in the composite exception.

R

raise() - Method in class net.kyori.event.PostResult
Raises a PostResult.CompositeException if the posting was not successful.
register(Class<T>, EventSubscriber<? super T>) - Method in interface net.kyori.event.EventBus
Registers the given subscriber to receive events.
register(Class<T>, EventSubscriber<? super T>) - Method in class net.kyori.event.SimpleEventBus
 
ReifiedEvent<T> - Interface in net.kyori.event
A type that knows its own type parameter.
result() - Method in exception net.kyori.event.PostResult.CompositeException
Gets the result that created this composite exception.

S

shouldPost(E, EventSubscriber<?>) - Method in class net.kyori.event.SimpleEventBus
Tests if the event should be posted to the subscriber.
SimpleEventBus<E> - Class in net.kyori.event
A simple implementation of an event bus.
SimpleEventBus(Class<E>) - Constructor for class net.kyori.event.SimpleEventBus
 
subscribers() - Method in interface net.kyori.event.EventBus
Gets an immutable multimap containing all of the subscribers currently registered.
subscribers() - Method in class net.kyori.event.SimpleEventBus
 
success() - Static method in class net.kyori.event.PostResult
Marks that no exceptions were thrown by subscribers.

T

toString() - Method in class net.kyori.event.PostResult
 
type() - Method in interface net.kyori.event.ReifiedEvent
Gets a type token representing the type parameter.

U

unregister(EventSubscriber<?>) - Method in interface net.kyori.event.EventBus
Unregisters a previously registered subscriber.
unregister(Predicate<EventSubscriber<?>>) - Method in interface net.kyori.event.EventBus
Unregisters all subscribers matching the predicate.
unregister(EventSubscriber<?>) - Method in class net.kyori.event.SimpleEventBus
 
unregister(Predicate<EventSubscriber<?>>) - Method in class net.kyori.event.SimpleEventBus
 
unregisterAll() - Method in interface net.kyori.event.EventBus
Unregisters all subscribers.
unregisterAll() - Method in class net.kyori.event.SimpleEventBus
 

W

wasSuccessful() - Method in class net.kyori.event.PostResult
Gets if the EventBus.post(Object) call was successful.
C E F G H I L N P R S T U W 
Skip navigation links