Package dev.jorel.commandapi.network
Interface CommandAPIPacketHandler<InputChannel>
- Type Parameters:
InputChannel- The type of objects that might send a packet to this plugin on this platform
- All Known Subinterfaces:
HandshakePacketHandler<InputChannel>,PlayPacketHandler<InputChannel>
public interface CommandAPIPacketHandler<InputChannel>
An interface for handling
CommandAPIPackets. Direct children of this interface handles packets for each of the
CommandAPIProtocols, and those children should be implemented to handle packets for each platform.-
Method Summary
Modifier and TypeMethodDescriptionvoidhandlePacket(InputChannel sender, CommandAPIPacket packet) Handles aCommandAPIPacketaccording to the implementation ofCommandAPIPacketHandler.
-
Method Details
-
handlePacket
Handles aCommandAPIPacketaccording to the implementation ofCommandAPIPacketHandler. This should be implemented for eachCommandAPIProtocolto handle packets on that channel.- Parameters:
sender- The source of the packet.packet- The data for the packet.
-