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 Details

    • execute

      public void execute(E event)
      Specified by:
      execute in interface com.velocitypowered.api.event.EventHandler<E>
    • executeAsync

      public com.velocitypowered.api.event.EventTask executeAsync(E event)
      Specified by:
      executeAsync in interface com.velocitypowered.api.event.EventHandler<E>
    • replaceDispatcher

      public void replaceDispatcher(VelocityEventBridge.AsyncEventDispatcher<E> replacement)
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable