
The initial state of each connection is Handshaking, and state is switched using the packets Handshake and Login Success.Īll data sent over the network (except for VarInt and VarLong) is big-endian, that is the bytes are sent from most significant byte to least significant byte. The meaning of a packet depends both on its packet ID and the current state of the connection. A packet is a sequence of bytes sent over the TCP connection. The Minecraft server accepts connections from TCP clients and communicates with them using packets.


6.2.22 Set Player Position and Rotation.

