Package dev.jorel.commandapi.network
Class VelocityHandshakePacketHandler
java.lang.Object
dev.jorel.commandapi.network.VelocityHandshakePacketHandler
- All Implemented Interfaces:
CommandAPIPacketHandler<com.velocitypowered.api.proxy.messages.ChannelMessageSource>,HandshakePacketHandler<com.velocitypowered.api.proxy.messages.ChannelMessageSource>
public class VelocityHandshakePacketHandler
extends Object
implements HandshakePacketHandler<com.velocitypowered.api.proxy.messages.ChannelMessageSource>
A
HandshakePacketHandler for handling CommandAPIPackets sent to Velocity.
Velocity may receive messages from a Client (Player) or a Server ServerConnection. The common
interface there is ChannelMessageSource (coming into Velocity). Packets may be handled differently depending
on their direction, so check which of these two sent the packet before continuing.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleSetVersionPacket(com.velocitypowered.api.proxy.messages.ChannelMessageSource sender, SetVersionPacket packet) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.jorel.commandapi.network.HandshakePacketHandler
handlePacket, handleProtocolVersionTooOldPacket
-
Constructor Details
-
VelocityHandshakePacketHandler
public VelocityHandshakePacketHandler()
-
-
Method Details
-
handleSetVersionPacket
public void handleSetVersionPacket(com.velocitypowered.api.proxy.messages.ChannelMessageSource sender, SetVersionPacket packet) - Specified by:
handleSetVersionPacketin interfaceHandshakePacketHandler<com.velocitypowered.api.proxy.messages.ChannelMessageSource>
-