Class PaperMessagingBridge

java.lang.Object
dev.shamoo.runtime.platform.paper.PaperMessagingBridge

public final class PaperMessagingBridge extends Object
Bukkit plugin messaging adapter preserving raw payload bytes.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    PaperMessagingBridge(org.bukkit.plugin.java.JavaPlugin plugin, dev.shamoo.runtime.core.ResourceRegistry resources)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    carrier(org.bukkit.entity.Player player, dev.shamoo.runtime.core.OptionalProxyTransport transport)
    Selects an online player as the optional Bukkit plugin-message carrier.
    register(dev.shamoo.runtime.core.PluginId owner, String channel, org.bukkit.plugin.messaging.PluginMessageListener listener)
     
    registerProxyTransport(dev.shamoo.runtime.core.PluginId owner, dev.shamoo.runtime.core.OptionalProxyTransport transport)
    Registers the response channel without making Velocity a standalone Paper requirement.
    boolean
    selectCarrier(dev.shamoo.runtime.core.OptionalProxyTransport transport)
    Selects the first legal online carrier without exposing a live Player across the script boundary.
    void
    send(org.bukkit.entity.Player player, String channel, byte[] payload)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • PaperMessagingBridge

      public PaperMessagingBridge(org.bukkit.plugin.java.JavaPlugin plugin, dev.shamoo.runtime.core.ResourceRegistry resources)
  • Method Details

    • register

      public AutoCloseable register(dev.shamoo.runtime.core.PluginId owner, String channel, org.bukkit.plugin.messaging.PluginMessageListener listener)
    • send

      public void send(org.bukkit.entity.Player player, String channel, byte[] payload)
    • registerProxyTransport

      public AutoCloseable registerProxyTransport(dev.shamoo.runtime.core.PluginId owner, dev.shamoo.runtime.core.OptionalProxyTransport transport)
      Registers the response channel without making Velocity a standalone Paper requirement.
    • carrier

      public boolean carrier(org.bukkit.entity.Player player, dev.shamoo.runtime.core.OptionalProxyTransport transport)
      Selects an online player as the optional Bukkit plugin-message carrier.
    • selectCarrier

      public boolean selectCarrier(dev.shamoo.runtime.core.OptionalProxyTransport transport)
      Selects the first legal online carrier without exposing a live Player across the script boundary.