summaryrefslogtreecommitdiff
path: root/classic/ext_entity_pos.go
diff options
context:
space:
mode:
authorraven <citrons@mondecitronne.com>2026-03-21 20:18:49 -0500
committerraven <citrons@mondecitronne.com>2026-03-21 20:21:46 -0500
commite08bcfec250e9a618241edab9f36ea64af306a40 (patch)
tree7da9a03b69382d53db0ed667a55230106d5457e0 /classic/ext_entity_pos.go
parentbb868d2d0d4d5a16d798d01d4a2ca8573ddc8a60 (diff)
use ExtEntityPositions
Diffstat (limited to 'classic/ext_entity_pos.go')
-rw-r--r--classic/ext_entity_pos.go22
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
+}