diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2021-06-28 23:12:01 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2021-07-06 22:33:03 +0200 |
commit | e735faf7558aff457432a14bdfde893b33d4d311 (patch) | |
tree | 35c76c2849b160c4fa112de6fce7a793ed670b9c /src/Protocol/Protocol_1_8.h | |
parent | Remove outdated comment and redundant check (diff) | |
download | cuberite-e735faf7558aff457432a14bdfde893b33d4d311.tar cuberite-e735faf7558aff457432a14bdfde893b33d4d311.tar.gz cuberite-e735faf7558aff457432a14bdfde893b33d4d311.tar.bz2 cuberite-e735faf7558aff457432a14bdfde893b33d4d311.tar.lz cuberite-e735faf7558aff457432a14bdfde893b33d4d311.tar.xz cuberite-e735faf7558aff457432a14bdfde893b33d4d311.tar.zst cuberite-e735faf7558aff457432a14bdfde893b33d4d311.zip |
Diffstat (limited to 'src/Protocol/Protocol_1_8.h')
-rw-r--r-- | src/Protocol/Protocol_1_8.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/Protocol/Protocol_1_8.h b/src/Protocol/Protocol_1_8.h index b1157366b..838435ad0 100644 --- a/src/Protocol/Protocol_1_8.h +++ b/src/Protocol/Protocol_1_8.h @@ -36,11 +36,10 @@ public: cProtocol_1_8_0(cClientHandle * a_Client, const AString & a_ServerAddress, State a_State); - /** Called to process them, when client sends some data. - The protocol uses the provided buffers for storage and processing, and must have exclusive access to them. */ virtual void DataReceived(cByteBuffer & a_Buffer, ContiguousByteBuffer && a_Data) override; + virtual void DataPrepared(ContiguousByteBuffer & a_Data) override; - /** Sending stuff to clients (alphabetically sorted): */ + // Sending stuff to clients (alphabetically sorted): virtual void SendAttachEntity (const cEntity & a_Entity, const cEntity & a_Vehicle) override; virtual void SendBlockAction (int a_BlockX, int a_BlockY, int a_BlockZ, char a_Byte1, char a_Byte2, BLOCKTYPE a_BlockType) override; virtual void SendBlockBreakAnim (UInt32 a_EntityID, int a_BlockX, int a_BlockY, int a_BlockZ, char a_Stage) override; @@ -216,9 +215,6 @@ protected: /** Sends the entity type and entity-dependent data required for the entity to initially spawn. */ virtual void SendEntitySpawn(const cEntity & a_Entity, const UInt8 a_ObjectType, const Int32 a_ObjectData); - /** Sends the data to the client, encrypting them if needed. */ - virtual void SendData(ContiguousByteBufferView a_Size) override; - /** Sends the packet to the client. Called by the cPacketizer's destructor. */ virtual void SendPacket(cPacketizer & a_Packet) override; |