Class VelocityEventBridge.Subscription<E>
java.lang.Object
dev.shamoo.runtime.platform.velocity.VelocityEventBridge.Subscription<E>
- All Implemented Interfaces:
com.velocitypowered.api.event.EventHandler<E>,AutoCloseable
- Enclosing class:
VelocityEventBridge
public static final class VelocityEventBridge.Subscription<E>
extends Object
implements com.velocitypowered.api.event.EventHandler<E>, AutoCloseable
Stable handler registered once and replaceable without changing Velocity listener order.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidcom.velocitypowered.api.event.EventTaskexecuteAsync(E event) voidreplaceDispatcher(VelocityEventBridge.AsyncEventDispatcher<E> replacement)
-
Method Details
-
execute
- Specified by:
executein interfacecom.velocitypowered.api.event.EventHandler<E>
-
executeAsync
- Specified by:
executeAsyncin interfacecom.velocitypowered.api.event.EventHandler<E>
-
replaceDispatcher
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-