Package com.hypixel.hytale.event
Class EventRegistry
- All Implemented Interfaces:
IEventRegistry
-
Nested Class Summary
Nested classes/interfaces inherited from class com.hypixel.hytale.registry.Registry
Registry.RegistrationWrapFunction<T extends Registration> -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEventRegistry(List<BooleanConsumer> registrations, BooleanSupplier precondition, String preconditionMessage, IEventRegistry parent) -
Method Summary
Modifier and TypeMethodDescriptionprivate IEventRegistry<EventType extends IBaseEvent<Void>>
EventRegistration<Void, EventType> <KeyType,EventType extends IBaseEvent<KeyType>>
EventRegistration<KeyType, EventType> register(short priority, Class<? super EventType> eventClass, KeyType key, Consumer<EventType> consumer) <EventType extends IBaseEvent<Void>>
EventRegistration<Void, EventType> register(EventPriority priority, Class<? super EventType> eventClass, Consumer<EventType> consumer) <KeyType,EventType extends IBaseEvent<KeyType>>
EventRegistration<KeyType, EventType> register(EventPriority priority, Class<? super EventType> eventClass, KeyType key, Consumer<EventType> consumer) <KeyType,EventType extends IBaseEvent<KeyType>>
EventRegistration<KeyType, EventType> register(EventRegistration<KeyType, EventType> evt) <EventType extends IBaseEvent<Void>>
EventRegistration<Void, EventType> <KeyType,EventType extends IBaseEvent<KeyType>>
EventRegistration<KeyType, EventType> <EventType extends IAsyncEvent<Void>>
EventRegistration<Void, EventType> registerAsync(short priority, Class<? super EventType> eventClass, Function<CompletableFuture<EventType>, CompletableFuture<EventType>> function) <KeyType,EventType extends IAsyncEvent<KeyType>>
EventRegistration<KeyType, EventType> registerAsync(short priority, Class<? super EventType> eventClass, KeyType key, Function<CompletableFuture<EventType>, CompletableFuture<EventType>> function) <EventType extends IAsyncEvent<Void>>
EventRegistration<Void, EventType> registerAsync(EventPriority priority, Class<? super EventType> eventClass, Function<CompletableFuture<EventType>, CompletableFuture<EventType>> function) <KeyType,EventType extends IAsyncEvent<KeyType>>
EventRegistration<KeyType, EventType> registerAsync(EventPriority priority, Class<? super EventType> eventClass, KeyType key, Function<CompletableFuture<EventType>, CompletableFuture<EventType>> function) <EventType extends IAsyncEvent<Void>>
EventRegistration<Void, EventType> registerAsync(Class<? super EventType> eventClass, Function<CompletableFuture<EventType>, CompletableFuture<EventType>> function) <KeyType,EventType extends IAsyncEvent<KeyType>>
EventRegistration<KeyType, EventType> registerAsync(Class<? super EventType> eventClass, KeyType key, Function<CompletableFuture<EventType>, CompletableFuture<EventType>> function) <KeyType,EventType extends IAsyncEvent<KeyType>>
EventRegistration<KeyType, EventType> registerAsyncGlobal(short priority, Class<? super EventType> eventClass, Function<CompletableFuture<EventType>, CompletableFuture<EventType>> function) <KeyType,EventType extends IAsyncEvent<KeyType>>
EventRegistration<KeyType, EventType> registerAsyncGlobal(EventPriority priority, Class<? super EventType> eventClass, Function<CompletableFuture<EventType>, CompletableFuture<EventType>> function) <KeyType,EventType extends IAsyncEvent<KeyType>>
EventRegistration<KeyType, EventType> registerAsyncGlobal(Class<? super EventType> eventClass, Function<CompletableFuture<EventType>, CompletableFuture<EventType>> function) <KeyType,EventType extends IAsyncEvent<KeyType>>
EventRegistration<KeyType, EventType> registerAsyncUnhandled(short priority, Class<? super EventType> eventClass, Function<CompletableFuture<EventType>, CompletableFuture<EventType>> function) <KeyType,EventType extends IAsyncEvent<KeyType>>
EventRegistration<KeyType, EventType> registerAsyncUnhandled(EventPriority priority, Class<? super EventType> eventClass, Function<CompletableFuture<EventType>, CompletableFuture<EventType>> function) <KeyType,EventType extends IAsyncEvent<KeyType>>
EventRegistration<KeyType, EventType> registerAsyncUnhandled(Class<? super EventType> eventClass, Function<CompletableFuture<EventType>, CompletableFuture<EventType>> function) <KeyType,EventType extends IBaseEvent<KeyType>>
EventRegistration<KeyType, EventType> registerGlobal(short priority, Class<? super EventType> eventClass, Consumer<EventType> consumer) <KeyType,EventType extends IBaseEvent<KeyType>>
EventRegistration<KeyType, EventType> registerGlobal(EventPriority priority, Class<? super EventType> eventClass, Consumer<EventType> consumer) <KeyType,EventType extends IBaseEvent<KeyType>>
EventRegistration<KeyType, EventType> registerGlobal(Class<? super EventType> eventClass, Consumer<EventType> consumer) <KeyType,EventType extends IBaseEvent<KeyType>>
EventRegistration<KeyType, EventType> registerUnhandled(short priority, Class<? super EventType> eventClass, Consumer<EventType> consumer) <KeyType,EventType extends IBaseEvent<KeyType>>
EventRegistration<KeyType, EventType> registerUnhandled(EventPriority priority, Class<? super EventType> eventClass, Consumer<EventType> consumer) <KeyType,EventType extends IBaseEvent<KeyType>>
EventRegistration<KeyType, EventType> registerUnhandled(Class<? super EventType> eventClass, Consumer<EventType> consumer) Methods inherited from class com.hypixel.hytale.registry.Registry
checkPrecondition, enable, getRegistrations, isEnabled, register, shutdown, toString
-
Field Details
-
parent
-
-
Constructor Details
-
EventRegistry
public EventRegistry(@Nonnull List<BooleanConsumer> registrations, @Nonnull BooleanSupplier precondition, String preconditionMessage, @Nonnull IEventRegistry parent)
-
-
Method Details
-
getParent
-
register
public <KeyType,EventType extends IBaseEvent<KeyType>> EventRegistration<KeyType,EventType> register(@Nonnull EventRegistration<KeyType, EventType> evt) -
register
public <EventType extends IBaseEvent<Void>> EventRegistration<Void,EventType> register(@Nonnull Class<? super EventType> eventClass, @Nonnull Consumer<EventType> consumer) - Specified by:
registerin interfaceIEventRegistry
-
register
public <EventType extends IBaseEvent<Void>> EventRegistration<Void,EventType> register(@Nonnull EventPriority priority, @Nonnull Class<? super EventType> eventClass, @Nonnull Consumer<EventType> consumer) - Specified by:
registerin interfaceIEventRegistry
-
register
public <EventType extends IBaseEvent<Void>> EventRegistration<Void,EventType> register(short priority, @Nonnull Class<? super EventType> eventClass, @Nonnull Consumer<EventType> consumer) - Specified by:
registerin interfaceIEventRegistry
-
register
public <KeyType,EventType extends IBaseEvent<KeyType>> EventRegistration<KeyType,EventType> register(@Nonnull Class<? super EventType> eventClass, @Nonnull KeyType key, @Nonnull Consumer<EventType> consumer) - Specified by:
registerin interfaceIEventRegistry
-
register
public <KeyType,EventType extends IBaseEvent<KeyType>> EventRegistration<KeyType,EventType> register(@Nonnull EventPriority priority, @Nonnull Class<? super EventType> eventClass, @Nonnull KeyType key, @Nonnull Consumer<EventType> consumer) - Specified by:
registerin interfaceIEventRegistry
-
register
public <KeyType,EventType extends IBaseEvent<KeyType>> EventRegistration<KeyType,EventType> register(short priority, @Nonnull Class<? super EventType> eventClass, @Nonnull KeyType key, @Nonnull Consumer<EventType> consumer) - Specified by:
registerin interfaceIEventRegistry
-
registerAsync
public <EventType extends IAsyncEvent<Void>> EventRegistration<Void,EventType> registerAsync(@Nonnull Class<? super EventType> eventClass, @Nonnull Function<CompletableFuture<EventType>, CompletableFuture<EventType>> function) - Specified by:
registerAsyncin interfaceIEventRegistry
-
registerAsync
public <EventType extends IAsyncEvent<Void>> EventRegistration<Void,EventType> registerAsync(@Nonnull EventPriority priority, @Nonnull Class<? super EventType> eventClass, @Nonnull Function<CompletableFuture<EventType>, CompletableFuture<EventType>> function) - Specified by:
registerAsyncin interfaceIEventRegistry
-
registerAsync
public <EventType extends IAsyncEvent<Void>> EventRegistration<Void,EventType> registerAsync(short priority, @Nonnull Class<? super EventType> eventClass, @Nonnull Function<CompletableFuture<EventType>, CompletableFuture<EventType>> function) - Specified by:
registerAsyncin interfaceIEventRegistry
-
registerAsync
public <KeyType,EventType extends IAsyncEvent<KeyType>> EventRegistration<KeyType,EventType> registerAsync(@Nonnull Class<? super EventType> eventClass, @Nonnull KeyType key, @Nonnull Function<CompletableFuture<EventType>, CompletableFuture<EventType>> function) - Specified by:
registerAsyncin interfaceIEventRegistry
-
registerAsync
public <KeyType,EventType extends IAsyncEvent<KeyType>> EventRegistration<KeyType,EventType> registerAsync(@Nonnull EventPriority priority, Class<? super EventType> eventClass, @Nonnull KeyType key, @Nonnull Function<CompletableFuture<EventType>, CompletableFuture<EventType>> function) - Specified by:
registerAsyncin interfaceIEventRegistry
-
registerAsync
public <KeyType,EventType extends IAsyncEvent<KeyType>> EventRegistration<KeyType,EventType> registerAsync(short priority, @Nonnull Class<? super EventType> eventClass, @Nonnull KeyType key, @Nonnull Function<CompletableFuture<EventType>, CompletableFuture<EventType>> function) - Specified by:
registerAsyncin interfaceIEventRegistry
-
registerGlobal
public <KeyType,EventType extends IBaseEvent<KeyType>> EventRegistration<KeyType,EventType> registerGlobal(@Nonnull Class<? super EventType> eventClass, @Nonnull Consumer<EventType> consumer) - Specified by:
registerGlobalin interfaceIEventRegistry
-
registerGlobal
public <KeyType,EventType extends IBaseEvent<KeyType>> EventRegistration<KeyType,EventType> registerGlobal(@Nonnull EventPriority priority, @Nonnull Class<? super EventType> eventClass, @Nonnull Consumer<EventType> consumer) - Specified by:
registerGlobalin interfaceIEventRegistry
-
registerGlobal
public <KeyType,EventType extends IBaseEvent<KeyType>> EventRegistration<KeyType,EventType> registerGlobal(short priority, @Nonnull Class<? super EventType> eventClass, @Nonnull Consumer<EventType> consumer) - Specified by:
registerGlobalin interfaceIEventRegistry
-
registerAsyncGlobal
public <KeyType,EventType extends IAsyncEvent<KeyType>> EventRegistration<KeyType,EventType> registerAsyncGlobal(@Nonnull Class<? super EventType> eventClass, @Nonnull Function<CompletableFuture<EventType>, CompletableFuture<EventType>> function) - Specified by:
registerAsyncGlobalin interfaceIEventRegistry
-
registerAsyncGlobal
public <KeyType,EventType extends IAsyncEvent<KeyType>> EventRegistration<KeyType,EventType> registerAsyncGlobal(@Nonnull EventPriority priority, @Nonnull Class<? super EventType> eventClass, @Nonnull Function<CompletableFuture<EventType>, CompletableFuture<EventType>> function) - Specified by:
registerAsyncGlobalin interfaceIEventRegistry
-
registerAsyncGlobal
public <KeyType,EventType extends IAsyncEvent<KeyType>> EventRegistration<KeyType,EventType> registerAsyncGlobal(short priority, @Nonnull Class<? super EventType> eventClass, @Nonnull Function<CompletableFuture<EventType>, CompletableFuture<EventType>> function) - Specified by:
registerAsyncGlobalin interfaceIEventRegistry
-
registerUnhandled
public <KeyType,EventType extends IBaseEvent<KeyType>> EventRegistration<KeyType,EventType> registerUnhandled(@Nonnull Class<? super EventType> eventClass, @Nonnull Consumer<EventType> consumer) - Specified by:
registerUnhandledin interfaceIEventRegistry
-
registerUnhandled
public <KeyType,EventType extends IBaseEvent<KeyType>> EventRegistration<KeyType,EventType> registerUnhandled(@Nonnull EventPriority priority, @Nonnull Class<? super EventType> eventClass, @Nonnull Consumer<EventType> consumer) - Specified by:
registerUnhandledin interfaceIEventRegistry
-
registerUnhandled
public <KeyType,EventType extends IBaseEvent<KeyType>> EventRegistration<KeyType,EventType> registerUnhandled(short priority, @Nonnull Class<? super EventType> eventClass, @Nonnull Consumer<EventType> consumer) - Specified by:
registerUnhandledin interfaceIEventRegistry
-
registerAsyncUnhandled
public <KeyType,EventType extends IAsyncEvent<KeyType>> EventRegistration<KeyType,EventType> registerAsyncUnhandled(@Nonnull Class<? super EventType> eventClass, @Nonnull Function<CompletableFuture<EventType>, CompletableFuture<EventType>> function) - Specified by:
registerAsyncUnhandledin interfaceIEventRegistry
-
registerAsyncUnhandled
public <KeyType,EventType extends IAsyncEvent<KeyType>> EventRegistration<KeyType,EventType> registerAsyncUnhandled(@Nonnull EventPriority priority, @Nonnull Class<? super EventType> eventClass, @Nonnull Function<CompletableFuture<EventType>, CompletableFuture<EventType>> function) - Specified by:
registerAsyncUnhandledin interfaceIEventRegistry
-
registerAsyncUnhandled
public <KeyType,EventType extends IAsyncEvent<KeyType>> EventRegistration<KeyType,EventType> registerAsyncUnhandled(short priority, @Nonnull Class<? super EventType> eventClass, @Nonnull Function<CompletableFuture<EventType>, CompletableFuture<EventType>> function) - Specified by:
registerAsyncUnhandledin interfaceIEventRegistry
-