Package org.spongepowered.api.event
Interface EventListenerRegistration<T extends Event>
- Type Parameters:
T
- The event type
public interface EventListenerRegistration<T extends Event>
Represents the composition of a
listener
and the attributes that define it
to the system.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
EventListenerRegistration.Builder<T extends Event>
static interface
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static <T extends Event>
EventListenerRegistration.Builder<T> builder
(io.leangen.geantyref.TypeToken<T> eventType) static <T extends Event>
EventListenerRegistration.Builder<T> EventListener
<? super T> listener()
order()
org.spongepowered.plugin.PluginContainer
plugin()
-
Method Details
-
builder
static <T extends Event> EventListenerRegistration.Builder<T> builder(io.leangen.geantyref.TypeToken<T> eventType) -
builder
-
eventType
Type eventType() -
plugin
org.spongepowered.plugin.PluginContainer plugin() -
order
Order order() -
beforeModifications
boolean beforeModifications() -
listener
EventListener<? super T> listener()
-