|
CommandAPI 12.1.0
An API for the command UI introduced in Minecraft 1.13
|
An interface for handling CommandAPIPackets on the CommandAPIProtocol#HANDSHAKE channel.
More...
Public Member Functions | |
| default void | handlePacket (InputChannel sender, CommandAPIPacket packet) |
Handles a CommandAPIPacket according to the implementation of CommandAPIPacketHandler. | |
| void | handleSetVersionPacket (InputChannel sender, SetVersionPacket packet) |
Handles a SetVersionPacket. | |
| default void | handleProtocolVersionTooOldPacket (InputChannel sender, ProtocolVersionTooOldPacket packet) |
Handles a ProtocolVersionTooOldPacket. | |
An interface for handling CommandAPIPackets on the CommandAPIProtocol#HANDSHAKE channel.
Each method handles a different packet. These methods should be implemented on each platform to define what happens when each packet is received.
| <InputChannel> | The type of objects that might send a packet to this plugin |
| default void dev.jorel.commandapi.network.HandshakePacketHandler< InputChannel >.handlePacket | ( | InputChannel | sender, |
| CommandAPIPacket | packet ) |
Handles a CommandAPIPacket according to the implementation of CommandAPIPacketHandler.
This should be implemented for each CommandAPIProtocol to handle packets on that channel.
| sender | The source of the packet. |
| packet | The data for the packet. |
Implements dev.jorel.commandapi.network.CommandAPIPacketHandler< InputChannel >.
| default void dev.jorel.commandapi.network.HandshakePacketHandler< InputChannel >.handleProtocolVersionTooOldPacket | ( | InputChannel | sender, |
| ProtocolVersionTooOldPacket | packet ) |
Handles a ProtocolVersionTooOldPacket.
| sender | The source of the packet. |
| packet | The data for the packet. |
| void dev.jorel.commandapi.network.HandshakePacketHandler< InputChannel >.handleSetVersionPacket | ( | InputChannel | sender, |
| SetVersionPacket | packet ) |
Handles a SetVersionPacket.
| sender | The source of the packet. |
| packet | The data for the packet. |