diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2020-07-20 10:56:27 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2020-07-26 19:55:16 +0200 |
commit | 99f8c4434246c3483436b1abac917cf3f23ddbc2 (patch) | |
tree | 866c1ad86ac7fc8ca243f5261fca47e6f737e792 /src/ByteBuffer.h | |
parent | Remove redundant ErasePowerData call (diff) | |
download | cuberite-99f8c4434246c3483436b1abac917cf3f23ddbc2.tar cuberite-99f8c4434246c3483436b1abac917cf3f23ddbc2.tar.gz cuberite-99f8c4434246c3483436b1abac917cf3f23ddbc2.tar.bz2 cuberite-99f8c4434246c3483436b1abac917cf3f23ddbc2.tar.lz cuberite-99f8c4434246c3483436b1abac917cf3f23ddbc2.tar.xz cuberite-99f8c4434246c3483436b1abac917cf3f23ddbc2.tar.zst cuberite-99f8c4434246c3483436b1abac917cf3f23ddbc2.zip |
Diffstat (limited to '')
-rw-r--r-- | src/ByteBuffer.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ByteBuffer.h b/src/ByteBuffer.h index e47f665a5..1116de08c 100644 --- a/src/ByteBuffer.h +++ b/src/ByteBuffer.h @@ -69,7 +69,8 @@ public: bool ReadVarInt64 (UInt64 & a_Value); bool ReadVarUTF8String (AString & a_Value); // string length as VarInt, then string as UTF-8 bool ReadLEInt (int & a_Value); - bool ReadPosition64 (int & a_BlockX, int & a_BlockY, int & a_BlockZ); + bool ReadXYZPosition64 (int & a_BlockX, int & a_BlockY, int & a_BlockZ); + bool ReadXZYPosition64 (int & a_BlockX, int & a_BlockY, int & a_BlockZ); bool ReadUUID (cUUID & a_Value); /** Reads VarInt, assigns it to anything that can be assigned from an UInt64 (unsigned short, char, Byte, double, ...) */ @@ -100,7 +101,8 @@ public: bool WriteVarInt64 (UInt64 a_Value); bool WriteVarUTF8String (const AString & a_Value); // string length as VarInt, then string as UTF-8 bool WriteLEInt32 (Int32 a_Value); - bool WritePosition64 (Int32 a_BlockX, Int32 a_BlockY, Int32 a_BlockZ); + bool WriteXYZPosition64 (Int32 a_BlockX, Int32 a_BlockY, Int32 a_BlockZ); + bool WriteXZYPosition64 (Int32 a_BlockX, Int32 a_BlockY, Int32 a_BlockZ); /** Reads a_Count bytes into a_Buffer; returns true if successful */ bool ReadBuf(void * a_Buffer, size_t a_Count); |