1
0

Remove GetProtocolVersion unneeded comments

This commit is contained in:
Tiger Wang 2020-07-19 23:11:02 +01:00
parent 3dae696b41
commit 2f30e98dae
4 changed files with 4 additions and 7 deletions

View File

@ -32,7 +32,6 @@ protected:
virtual void SendSoundEffect(const AString & a_SoundName, double a_X, double a_Y, double a_Z, float a_Volume, float a_Pitch) override;
/** Returns 1.10. */
virtual Version GetProtocolVersion() override;
virtual void HandlePacketResourcePackStatus(cByteBuffer & a_ByteBuffer) override;
virtual void WriteEntityMetadata(cPacketizer & a_Pkt, const cEntity & a_Entity) override;

View File

@ -66,6 +66,5 @@ public:
protected:
/** Returns 1.11.1. */
virtual Version GetProtocolVersion() override;
};

View File

@ -37,7 +37,6 @@ protected:
virtual UInt32 GetPacketID(ePacketType a_Packet) override;
/** Returns 1.12. */
virtual Version GetProtocolVersion() override;
virtual bool HandlePacket(cByteBuffer & a_ByteBuffer, UInt32 a_PacketType) override;
virtual void HandlePacketAdvancementTab(cByteBuffer & a_ByteBuffer);
@ -64,7 +63,6 @@ protected:
virtual UInt32 GetPacketID(ePacketType a_Packet) override;
/** Returns 1.12.1. */
virtual Version GetProtocolVersion() override;
virtual bool HandlePacket(cByteBuffer & a_ByteBuffer, UInt32 a_PacketType) override;
};
@ -84,7 +82,6 @@ public:
protected:
/** Returns 1.12.2. */
virtual Version GetProtocolVersion() override;
virtual void HandlePacketKeepAlive(cByteBuffer & a_ByteBuffer) override;
virtual void SendKeepAlive(UInt32 a_PingID) override;

View File

@ -5,6 +5,10 @@
Declares the 1.13 protocol classes:
- cProtocol_1_13
- release 1.13 protocol (#393)
- cProtocol_1_13_1
- release 1.13.1 protocol (#401)
- cProtocol_1_13_2
- release 1.13.2 protocol (#404)
(others may be added later in the future for the 1.13 release series)
*/
@ -96,7 +100,6 @@ protected:
virtual void SendBlockChange(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta) override;
virtual void SendBlockChanges(int a_ChunkX, int a_ChunkZ, const sSetBlockVector & a_Changes) override;
/** Returns 1.13.1 */
virtual Version GetProtocolVersion() override;
virtual std::pair<short, short> GetItemFromProtocolID(UInt32 a_ProtocolID) override;
virtual UInt32 GetProtocolIDFromItem(short a_ItemID, short a_ItemDamage) override;
@ -117,7 +120,6 @@ public:
protected:
/** Returns 1.13.2 */
virtual Version GetProtocolVersion() override;
virtual bool ReadItem(cByteBuffer & a_ByteBuffer, cItem & a_Item, size_t a_KeepRemainingBytes) override;
virtual void WriteItem(cPacketizer & a_Pkt, const cItem & a_Item) override;