Class VelocityMessagingBridge

java.lang.Object
dev.shamoo.runtime.platform.velocity.VelocityMessagingBridge

public final class VelocityMessagingBridge extends Object
Velocity channel registration and lossless payload sender.
  • Constructor Details

    • VelocityMessagingBridge

      public VelocityMessagingBridge(com.velocitypowered.api.proxy.ProxyServer server, dev.shamoo.runtime.core.ResourceRegistry resources)
  • Method Details

    • register

      public AutoCloseable register(dev.shamoo.runtime.core.PluginId owner, com.velocitypowered.api.proxy.messages.ChannelIdentifier identifier)
    • send

      public boolean send(com.velocitypowered.api.proxy.messages.ChannelMessageSink sink, com.velocitypowered.api.proxy.messages.ChannelIdentifier identifier, byte[] payload)
    • registerProxyEndpoint

      public AutoCloseable registerProxyEndpoint(dev.shamoo.runtime.core.PluginId owner, Object plugin, com.velocitypowered.api.proxy.messages.ChannelIdentifier identifier, VelocityMessagingBridge.ProxyRequestHandler handler)
      Registers a backend-only request endpoint. Unrelated, malformed, response, and untrusted-source messages retain Velocity's forwarding result; only an accepted Shamoo request is marked handled.