summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol_1_14.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Protocol/Protocol_1_14.h')
-rw-r--r--src/Protocol/Protocol_1_14.h92
1 files changed, 46 insertions, 46 deletions
diff --git a/src/Protocol/Protocol_1_14.h b/src/Protocol/Protocol_1_14.h
index 81cd03166..60b3171cc 100644
--- a/src/Protocol/Protocol_1_14.h
+++ b/src/Protocol/Protocol_1_14.h
@@ -19,32 +19,43 @@ Declares the 1.14 protocol classes:
-class cProtocol_1_14:
- public cProtocol_1_13_2
+class cProtocol_1_14 : public cProtocol_1_13_2
{
using Super = cProtocol_1_13_2;
-public:
-
+ public:
using Super::Super;
-protected:
-
- virtual void SendBlockAction (Vector3i a_BlockPos, char a_Byte1, char a_Byte2, BLOCKTYPE a_BlockType) override;
- virtual void SendBlockBreakAnim (UInt32 a_EntityID, Vector3i a_BlockPos, char a_Stage) override;
- virtual void SendBlockChange (Vector3i a_BlockPos, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta) override;
- virtual void SendEditSign (Vector3i a_BlockPos) override; ///< Request the client to open up the sign editor for the sign (1.6+)
- virtual void SendEntityAnimation (const cEntity & a_Entity, EntityAnimation a_Animation) override;
- virtual void SendEntitySpawn (const cEntity & a_Entity, const UInt8 a_ObjectType, const Int32 a_ObjectData) override;
- virtual void SendLogin (const cPlayer & a_Player, const cWorld & a_World) override;
- virtual void SendMapData (const cMap & a_Map, int a_DataStartX, int a_DataStartY) override;
- virtual void SendPaintingSpawn (const cPainting & a_Painting) override;
- virtual void SendParticleEffect (const AString & a_ParticleName, Vector3f a_Src, Vector3f a_Offset, float a_ParticleData, int a_ParticleAmount, std::array<int, 2> a_Data) override;
- virtual void SendRespawn (eDimension a_Dimension) override;
- virtual void SendSoundParticleEffect (const EffectID a_EffectID, Vector3i a_Origin, int a_Data) override;
- virtual void SendUpdateBlockEntity (cBlockEntity & a_BlockEntity) override;
- virtual void SendUpdateSign (Vector3i a_BlockPos, const AString & a_Line1, const AString & a_Line2, const AString & a_Line3, const AString & a_Line4) override;
- virtual void SendWindowOpen (const cWindow & a_Window) override;
+ protected:
+ virtual void SendBlockAction(Vector3i a_BlockPos, char a_Byte1, char a_Byte2, BLOCKTYPE a_BlockType) override;
+ virtual void SendBlockBreakAnim(UInt32 a_EntityID, Vector3i a_BlockPos, char a_Stage) override;
+ virtual void SendBlockChange(Vector3i a_BlockPos, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta) override;
+ virtual void SendEditSign(Vector3i a_BlockPos
+ ) override; ///< Request the client to open up the sign editor for the sign (1.6+)
+ virtual void SendEntityAnimation(const cEntity & a_Entity, EntityAnimation a_Animation) override;
+ virtual void SendEntitySpawn(const cEntity & a_Entity, const UInt8 a_ObjectType, const Int32 a_ObjectData) override;
+ virtual void SendLogin(const cPlayer & a_Player, const cWorld & a_World) override;
+ virtual void SendMapData(const cMap & a_Map, int a_DataStartX, int a_DataStartY) override;
+ virtual void SendPaintingSpawn(const cPainting & a_Painting) override;
+ virtual void SendParticleEffect(
+ const AString & a_ParticleName,
+ Vector3f a_Src,
+ Vector3f a_Offset,
+ float a_ParticleData,
+ int a_ParticleAmount,
+ std::array<int, 2> a_Data
+ ) override;
+ virtual void SendRespawn(eDimension a_Dimension) override;
+ virtual void SendSoundParticleEffect(const EffectID a_EffectID, Vector3i a_Origin, int a_Data) override;
+ virtual void SendUpdateBlockEntity(cBlockEntity & a_BlockEntity) override;
+ virtual void SendUpdateSign(
+ Vector3i a_BlockPos,
+ const AString & a_Line1,
+ const AString & a_Line2,
+ const AString & a_Line3,
+ const AString & a_Line4
+ ) override;
+ virtual void SendWindowOpen(const cWindow & a_Window) override;
virtual UInt8 GetEntityMetadataID(EntityMetadata a_Metadata) const override;
virtual UInt32 GetPacketID(ePacketType a_PacketType) const override;
@@ -63,7 +74,8 @@ protected:
virtual void HandlePacketBlockPlace(cByteBuffer & a_ByteBuffer) override;
virtual void HandlePacketUpdateSign(cByteBuffer & a_ByteBuffer) override;
- virtual void WriteEntityMetadata(cPacketizer & a_Pkt, EntityMetadata a_Metadata, EntityMetadataType a_FieldType) const override;
+ virtual void WriteEntityMetadata(cPacketizer & a_Pkt, EntityMetadata a_Metadata, EntityMetadataType a_FieldType)
+ const override;
virtual void WriteEntityMetadata(cPacketizer & a_Pkt, const cEntity & a_Entity) const override;
virtual void WriteMobMetadata(cPacketizer & a_Pkt, const cMonster & a_Mob) const override;
};
@@ -72,17 +84,14 @@ protected:
-class cProtocol_1_14_1:
- public cProtocol_1_14
+class cProtocol_1_14_1 : public cProtocol_1_14
{
using Super = cProtocol_1_14;
-public:
-
+ public:
using Super::Super;
-protected:
-
+ protected:
virtual Version GetProtocolVersion() const override;
};
@@ -90,17 +99,14 @@ protected:
-class cProtocol_1_14_2:
- public cProtocol_1_14_1
+class cProtocol_1_14_2 : public cProtocol_1_14_1
{
using Super = cProtocol_1_14_1;
-public:
-
+ public:
using Super::Super;
-protected:
-
+ protected:
virtual Version GetProtocolVersion() const override;
};
@@ -108,17 +114,14 @@ protected:
-class cProtocol_1_14_3:
- public cProtocol_1_14_2
+class cProtocol_1_14_3 : public cProtocol_1_14_2
{
using Super = cProtocol_1_14_2;
-public:
-
+ public:
using Super::Super;
-protected:
-
+ protected:
virtual Version GetProtocolVersion() const override;
};
@@ -126,16 +129,13 @@ protected:
-class cProtocol_1_14_4:
- public cProtocol_1_14_3
+class cProtocol_1_14_4 : public cProtocol_1_14_3
{
using Super = cProtocol_1_14_3;
-public:
-
+ public:
using Super::Super;
-protected:
-
+ protected:
virtual Version GetProtocolVersion() const override;
};