diff options
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 +} |
