feat: 1.21.11 codecs

This commit is contained in:
2026-02-15 23:04:47 +08:00
parent 1718f54fb1
commit aba432da7a
12 changed files with 660 additions and 375 deletions
@@ -1,6 +1,7 @@
package client
import (
"git.konjactw.dev/patyhank/minego/pkg/protocol"
"github.com/google/uuid"
"git.konjactw.dev/falloutBot/go-mc/data/packetid"
@@ -13,13 +14,13 @@ var _ packet.Field = (*AddEntity)(nil)
// AddEntityPacket
// codec:gen
type AddEntity struct {
ID int32 `mc:"VarInt"`
UUID uuid.UUID `mc:"UUID"`
Type int32 `mc:"VarInt"`
X, Y, Z float64
XRot, YRot, YHeadRot int8
Data int32 `mc:"VarInt"`
VelocityX, VelocityY, VelocityZ int16
ID int32 `mc:"VarInt"`
UUID uuid.UUID `mc:"UUID"`
Type int32 `mc:"VarInt"`
X, Y, Z float64
Velocity protocol.LpVec3
Pitch, Yaw, HeadYaw packet.Angle
Data int32 `mc:"VarInt"`
}
func (AddEntity) ClientboundPacketID() packetid.ClientboundPacketID {