diff options
Diffstat (limited to '')
-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); |