Class PacketDispatcherHub
java.lang.Object
dev.shamoo.runtime.platform.paper.packet.PacketDispatcherHub
- All Implemented Interfaces:
PaperPacketBridge.PacketDispatcher
Stable runtime packet dispatcher with policy-checked, owner-scoped subscriptions.
-
Constructor Summary
ConstructorsConstructorDescriptionPacketDispatcherHub(PacketAccessPolicy policy, dev.shamoo.runtime.core.ResourceRegistry resources) -
Method Summary
Modifier and TypeMethodDescriptionsubscribe(dev.shamoo.runtime.core.PluginId owner, PaperPacketBridge.PacketDispatcher dispatcher)
-
Constructor Details
-
PacketDispatcherHub
public PacketDispatcherHub(PacketAccessPolicy policy, dev.shamoo.runtime.core.ResourceRegistry resources)
-
-
Method Details
-
subscribe
public AutoCloseable subscribe(dev.shamoo.runtime.core.PluginId owner, PaperPacketBridge.PacketDispatcher dispatcher) -
dispatch
- Specified by:
dispatchin interfacePaperPacketBridge.PacketDispatcher
-