From e08bcfec250e9a618241edab9f36ea64af306a40 Mon Sep 17 00:00:00 2001 From: raven Date: Sat, 21 Mar 2026 20:18:49 -0500 Subject: use ExtEntityPositions --- classic/ext_entity_pos.go | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 classic/ext_entity_pos.go (limited to 'classic/ext_entity_pos.go') diff --git a/classic/ext_entity_pos.go b/classic/ext_entity_pos.go new file mode 100644 index 0000000..cfc7bb9 --- /dev/null +++ b/classic/ext_entity_pos.go @@ -0,0 +1,22 @@ +package classic + +type Fixed int32 + +type SpawnPlayerExt struct { + PlayerId int8 + Username String + X, Y, Z Fixed + Yaw, Pitch byte +} +func (p *SpawnPlayerExt) PacketId() byte { + return 0x07 +} + +type SetPosFacingExt struct { + PlayerId int8 + X, Y, Z Fixed + Yaw, Pitch byte +} +func (p *SetPosFacingExt) PacketId() byte { + return 0x08 +} -- cgit v1.2.3