public final class PacketChannel extends Object implements PluginMessageChannel
PluginMessageChannel.Identity, PluginMessageChannel.Result| Constructor and Description |
|---|
PacketChannel() |
| Modifier and Type | Method and Description |
|---|---|
String |
getIdentifier() |
PluginMessageChannel.Result |
handleProxyCall(byte[] data,
org.geysermc.floodgate.api.player.FloodgatePlayer source,
PluginMessageChannel.Identity sourceIdentity) |
PluginMessageChannel.Result |
handleServerCall(byte[] data,
org.geysermc.floodgate.api.player.FloodgatePlayer source) |
boolean |
sendPacket(UUID player,
byte[] packet,
UnsafeFloodgateApi api) |
public String getIdentifier()
getIdentifier in interface PluginMessageChannelpublic PluginMessageChannel.Result handleProxyCall(byte[] data, org.geysermc.floodgate.api.player.FloodgatePlayer source, PluginMessageChannel.Identity sourceIdentity)
handleProxyCall in interface PluginMessageChannelpublic PluginMessageChannel.Result handleServerCall(byte[] data, org.geysermc.floodgate.api.player.FloodgatePlayer source)
handleServerCall in interface PluginMessageChannelpublic boolean sendPacket(UUID player, byte[] packet, UnsafeFloodgateApi api)