Package net.minestom.server.network
Class PacketProcessor
java.lang.Object
net.minestom.server.network.PacketProcessor
Responsible for processing client packets.
You can retrieve the different packet handlers per state (status/login/play)
from the ClientPacketsHandler
classes.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull ClientPacket
create
(@NotNull ConnectionState connectionState, int packetId, ByteBuffer body) process
(@NotNull PlayerConnection connection, int packetId, ByteBuffer body)
-
Constructor Details
-
PacketProcessor
-
-
Method Details
-
create
@NotNull public @NotNull ClientPacket create(@NotNull @NotNull ConnectionState connectionState, int packetId, ByteBuffer body) -
process
public ClientPacket process(@NotNull @NotNull PlayerConnection connection, int packetId, ByteBuffer body)
-