diff options
author | Simon Pribylski <66266021+Persson-dev@users.noreply.github.com> | 2022-04-20 12:21:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-20 12:21:30 +0200 |
commit | 21bcb2a7578e6b25faadda89345684871c7144aa (patch) | |
tree | 24f7ad32dcf681360e7c73f5467c073369096f35 /src/Protocol/Packetizer.h | |
parent | handled the infinite loop and style (diff) | |
download | cuberite-21bcb2a7578e6b25faadda89345684871c7144aa.tar cuberite-21bcb2a7578e6b25faadda89345684871c7144aa.tar.gz cuberite-21bcb2a7578e6b25faadda89345684871c7144aa.tar.bz2 cuberite-21bcb2a7578e6b25faadda89345684871c7144aa.tar.lz cuberite-21bcb2a7578e6b25faadda89345684871c7144aa.tar.xz cuberite-21bcb2a7578e6b25faadda89345684871c7144aa.tar.zst cuberite-21bcb2a7578e6b25faadda89345684871c7144aa.zip |
Diffstat (limited to 'src/Protocol/Packetizer.h')
-rw-r--r-- | src/Protocol/Packetizer.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Protocol/Packetizer.h b/src/Protocol/Packetizer.h index f4d632a27..679a26af4 100644 --- a/src/Protocol/Packetizer.h +++ b/src/Protocol/Packetizer.h @@ -146,6 +146,13 @@ public: VERIFY(m_Out.WriteXZYPosition64(a_BlockX, a_BlockY, a_BlockZ)); } + /** Writes the specified block position as a single encoded 64-bit BigEndian integer. + The three coordinates are written in XZY order, in 1.14+. */ + inline void WriteXZYPosition64(const Vector3i a_Position) + { + VERIFY(m_Out.WriteXZYPosition64(a_Position.x, a_Position.y, a_Position.z)); + } + /** Writes the specified angle using a single byte. */ void WriteByteAngle(double a_Angle); |