Class EventSignalRegistry
java.lang.Object
me.tamkungz.signals.velocity.internal.EventSignalRegistry
Registers one Velocity handler per event type and post order, and caches the
Signal each of them feeds.
Internal: use VelocitySignals instead.
-
Constructor Summary
ConstructorsConstructorDescriptionEventSignalRegistry(Object plugin, com.velocitypowered.api.proxy.ProxyServer proxy, me.tamkungz.signals.SignalBus bus) Creates a registry that registers Velocity handlers for a plugin and fires onto a bus. -
Method Summary
-
Constructor Details
-
EventSignalRegistry
public EventSignalRegistry(Object plugin, com.velocitypowered.api.proxy.ProxyServer proxy, me.tamkungz.signals.SignalBus bus) Creates a registry that registers Velocity handlers for a plugin and fires onto a bus.- Parameters:
plugin- plugin instance that owns the Velocity handlersproxy- the proxy whose event manager the handlers are registered onbus- bus the signals live on
-
-
Method Details
-
signal
public <T> me.tamkungz.signals.Signal<T> signal(Class<T> eventType, com.velocitypowered.api.event.PostOrder order) Returns the signal for an event type with the given post order, registering the Velocity handler on first use.- Type Parameters:
T- event type- Parameters:
eventType- Velocity event typeorder- order in which the Velocity handler runs- Returns:
- the signal for that combination
-