diff options
| author | raven <citrons@mondecitronne.com> | 2026-03-21 20:18:49 -0500 |
|---|---|---|
| committer | raven <citrons@mondecitronne.com> | 2026-03-21 20:21:46 -0500 |
| commit | e08bcfec250e9a618241edab9f36ea64af306a40 (patch) | |
| tree | 7da9a03b69382d53db0ed667a55230106d5457e0 /classic/ext_entity_pos.go | |
| parent | bb868d2d0d4d5a16d798d01d4a2ca8573ddc8a60 (diff) | |
use ExtEntityPositions
Diffstat (limited to 'classic/ext_entity_pos.go')
| -rw-r--r-- | classic/ext_entity_pos.go | 22 |
1 files changed, 22 insertions, 0 deletions
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 +} |
