Package dev.jorel.commandapi.network
Class VelocityPlayPacketHandler
java.lang.Object
dev.jorel.commandapi.network.VelocityPlayPacketHandler
- All Implemented Interfaces:
CommandAPIPacketHandler<com.velocitypowered.api.proxy.messages.ChannelMessageSource>,PlayPacketHandler<com.velocitypowered.api.proxy.messages.ChannelMessageSource>
public class VelocityPlayPacketHandler
extends Object
implements PlayPacketHandler<com.velocitypowered.api.proxy.messages.ChannelMessageSource>
A
PlayPacketHandler 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 TypeMethodDescriptionvoidhandleUpdateRequirementsPacket(com.velocitypowered.api.proxy.messages.ChannelMessageSource sender, UpdateRequirementsPacket 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.PlayPacketHandler
handlePacket
-
Constructor Details
-
VelocityPlayPacketHandler
public VelocityPlayPacketHandler()
-
-
Method Details
-
handleUpdateRequirementsPacket
public void handleUpdateRequirementsPacket(com.velocitypowered.api.proxy.messages.ChannelMessageSource sender, UpdateRequirementsPacket packet) - Specified by:
handleUpdateRequirementsPacketin interfacePlayPacketHandler<com.velocitypowered.api.proxy.messages.ChannelMessageSource>
-