summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol_1_12.h
diff options
context:
space:
mode:
authorpeterbell10 <peterbell10@live.co.uk>2017-09-21 15:12:43 +0200
committerAlexander Harkness <me@bearbin.net>2017-09-21 15:12:43 +0200
commite883aa828c304600fcd707b50df9515011311db8 (patch)
treed2a14af47bf001df1fb2705278fad8a75682f883 /src/Protocol/Protocol_1_12.h
parentOnly allow snow to be placed where valid. Fixes #2920. (diff)
downloadcuberite-e883aa828c304600fcd707b50df9515011311db8.tar
cuberite-e883aa828c304600fcd707b50df9515011311db8.tar.gz
cuberite-e883aa828c304600fcd707b50df9515011311db8.tar.bz2
cuberite-e883aa828c304600fcd707b50df9515011311db8.tar.lz
cuberite-e883aa828c304600fcd707b50df9515011311db8.tar.xz
cuberite-e883aa828c304600fcd707b50df9515011311db8.tar.zst
cuberite-e883aa828c304600fcd707b50df9515011311db8.zip
Diffstat (limited to '')
-rw-r--r--src/Protocol/Protocol_1_12.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/Protocol/Protocol_1_12.h b/src/Protocol/Protocol_1_12.h
index 9b87494a6..fe518fdbd 100644
--- a/src/Protocol/Protocol_1_12.h
+++ b/src/Protocol/Protocol_1_12.h
@@ -7,6 +7,8 @@ Declares the 1.12 protocol classes:
- release 1.12 protocol (#335)
- cProtocol_1_12_1
- release 1.12.1 protocol (#338)
+ - cProtocol_1_12_2
+ - release 1.12.2 protocol (#340)
(others may be added later in the future for the 1.12 release series)
*/
@@ -71,3 +73,24 @@ protected:
+
+class cProtocol_1_12_2:
+ public cProtocol_1_12_1
+{
+ typedef cProtocol_1_12_1 Super;
+
+public:
+ cProtocol_1_12_2(cClientHandle * a_Client, const AString & a_ServerAddress, UInt16 a_ServerPort, UInt32 a_State):
+ Super(a_Client, a_ServerAddress, a_ServerPort, a_State)
+ {
+ }
+
+protected:
+ virtual void HandlePacketKeepAlive(cByteBuffer & a_ByteBuffer) override;
+ virtual void HandlePacketStatusRequest(cByteBuffer & a_ByteBuffer) override;
+ virtual void SendKeepAlive(UInt32 a_PingID) override;
+};
+
+
+
+