1.21.6 Clientbound PlayState Packets

This commit is contained in:
2025-06-20 04:22:08 +08:00
parent e40ed2e534
commit 195d34f32d
204 changed files with 10118 additions and 3287 deletions

View File

@ -6,17 +6,13 @@ import (
var _ ClientboundPacket = (*PlayerPosition)(nil)
//codec:gen
type PositionMoveRotation struct {
X, Y, Z float64
YRot, XRot float32
}
//codec:gen
type PlayerPosition struct {
ID int32 `mc:"VarInt"`
Change PositionMoveRotation
Relatives uint8
ID int32 `mc:"VarInt"`
X, Y, Z float64
VelocityX, VelocityY, VelocityZ float64
YRot, XRot float32
Flags int32
}
func (PlayerPosition) ClientboundPacketID() packetid.ClientboundPacketID {