Class PacketVanilla
java.lang.Object
net.minestom.server.network.packet.PacketVanilla
Constants and utilities for vanilla packets.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final PacketParser
<ClientPacket> static final ObjectPool
<NetworkBuffer> Pool containing a buffer able to hold the largest packet.static final PacketParser
<ServerPacket> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectionState
nextClientState
(ClientPacket packet, ConnectionState currentState) static ConnectionState
nextServerState
(ServerPacket packet, ConnectionState currentState)
-
Field Details
-
CLIENT_PACKET_PARSER
-
SERVER_PACKET_PARSER
-
PACKET_POOL
Pool containing a buffer able to hold the largest packet.Size starts with
ServerFlag.POOLED_BUFFER_SIZE
and doubles untilServerFlag.MAX_PACKET_SIZE
.
-
-
Constructor Details
-
PacketVanilla
public PacketVanilla()
-
-
Method Details
-
nextClientState
-
nextServerState
-