Package dev.jorel.commandapi.network
Class VelocityPacketHandlerProvider
java.lang.Object
dev.jorel.commandapi.network.VelocityPacketHandlerProvider
- All Implemented Interfaces:
CommandAPIPacketHandlerProvider<com.velocitypowered.api.proxy.messages.ChannelMessageSource>
public class VelocityPacketHandlerProvider
extends Object
implements CommandAPIPacketHandlerProvider<com.velocitypowered.api.proxy.messages.ChannelMessageSource>
A
CommandAPIPacketHandler for 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 TypeMethodDescriptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.jorel.commandapi.network.CommandAPIPacketHandlerProvider
getHandlerForProtocol
-
Constructor Details
-
VelocityPacketHandlerProvider
public VelocityPacketHandlerProvider()
-
-
Method Details
-
getHandshakePacketHandler
- Specified by:
getHandshakePacketHandlerin interfaceCommandAPIPacketHandlerProvider<com.velocitypowered.api.proxy.messages.ChannelMessageSource>
-
getPlayPacketHandler
- Specified by:
getPlayPacketHandlerin interfaceCommandAPIPacketHandlerProvider<com.velocitypowered.api.proxy.messages.ChannelMessageSource>
-