|
CommandAPI 12.1.0
An API for the command UI introduced in Minecraft 1.13
|
An interface for handling CommandAPIPackets on the CommandAPIProtocol#PLAY channel.
More...
Public Member Functions | |
| default void | handlePacket (InputChannel sender, CommandAPIPacket packet) |
Handles a CommandAPIPacket according to the implementation of CommandAPIPacketHandler. | |
| void | handleUpdateRequirementsPacket (InputChannel sender, UpdateRequirementsPacket packet) |
Handles a UpdateRequirementsPacket. | |
An interface for handling CommandAPIPackets on the CommandAPIProtocol#PLAY 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.PlayPacketHandler< 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 >.
| void dev.jorel.commandapi.network.PlayPacketHandler< InputChannel >.handleUpdateRequirementsPacket | ( | InputChannel | sender, |
| UpdateRequirementsPacket | packet ) |
Handles a UpdateRequirementsPacket.
| sender | The source of the packet. |
| packet | The data for the packet. |