Package com.ultikits.ultitools.entities
Class HandlerEntry
java.lang.Object
com.ultikits.ultitools.entities.HandlerEntry
- All Implemented Interfaces:
Comparable<HandlerEntry>
Internal representation of a registered event handler.
已注册事件处理器的内部表示。
- Since:
- 6.2.2
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Consumer<? extends ModuleEvent> private final Class<? extends ModuleEvent> private final booleanprivate final Objectprivate final Methodprivate final Stringprivate final EventPriority -
Constructor Summary
ConstructorsConstructorDescriptionHandlerEntry(Class<? extends ModuleEvent> eventType, EventPriority priority, boolean ignoreCancelled, String ownerModule, Method method, Object instance) Constructor for annotation-based handlers.HandlerEntry(Class<? extends ModuleEvent> eventType, EventPriority priority, boolean ignoreCancelled, String ownerModule, Consumer<? extends ModuleEvent> consumer) Constructor for programmatic handlers. -
Method Summary
-
Field Details
-
eventType
-
priority
-
ignoreCancelled
private final boolean ignoreCancelled -
ownerModule
-
method
-
instance
-
consumer
-
-
Constructor Details
-
HandlerEntry
public HandlerEntry(Class<? extends ModuleEvent> eventType, EventPriority priority, boolean ignoreCancelled, String ownerModule, Method method, Object instance) Constructor for annotation-based handlers. -
HandlerEntry
public HandlerEntry(Class<? extends ModuleEvent> eventType, EventPriority priority, boolean ignoreCancelled, String ownerModule, Consumer<? extends ModuleEvent> consumer) Constructor for programmatic handlers.
-
-
Method Details
-
isProgrammatic
public boolean isProgrammatic() -
compareTo
- Specified by:
compareToin interfaceComparable<HandlerEntry>
-