feat: 1.21.11 codecs
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user