Cuberite
A lightweight, fast and extensible game server for Minecraft
Protocol_1_11.h
Go to the documentation of this file.
1 
2 // Protocol_1_11.h
3 
4 /*
5 Declares the 1.11 protocol classes:
6  - cProtocol_1_11_0
7  - release 1.11 protocol (#315)
8  - cProtocol_1_11_1
9  - release 1.11.1 protocol (#316)
10 */
11 
12 
13 
14 
15 
16 #pragma once
17 
18 #include "Protocol_1_10.h"
19 
20 
21 
22 
23 
25  public cProtocol_1_10_0
26 {
28 
29 public:
30  cProtocol_1_11_0(cClientHandle * a_Client, const AString &a_ServerAddress, UInt16 a_ServerPort, UInt32 a_State);
31 
32  virtual void SendCollectEntity(const cEntity & a_Entity, const cPlayer & a_Player, int a_Count) override;
33  virtual void SendHideTitle (void) override;
34  virtual void SendResetTitle (void) override;
35  virtual void SendSpawnMob (const cMonster & a_Mob) override;
36  virtual void SendTitleTimes (int a_FadeInTicks, int a_DisplayTicks, int a_FadeOutTicks) override;
37 
38 protected:
39 
40  virtual void HandlePacketBlockPlace (cByteBuffer & a_ByteBuffer) override;
41  virtual void HandlePacketStatusRequest(cByteBuffer & a_ByteBuffer) override;
42 
43  virtual void WriteEntityMetadata(cPacketizer & a_Pkt, const cEntity & a_Entity) override;
44  virtual void WriteMobMetadata(cPacketizer & a_Pkt, const cMonster & a_Mob) override;
45  virtual void WriteBlockEntity(cPacketizer & a_Pkt, const cBlockEntity & a_BlockEntity) override;
46 };
47 
48 
49 
50 
51 
53  public cProtocol_1_11_0
54 {
56 
57 public:
58  cProtocol_1_11_1(cClientHandle * a_Client, const AString & a_ServerAddress, UInt16 a_ServerPort, UInt32 a_State);
59 
60  virtual void HandlePacketStatusRequest(cByteBuffer & a_ByteBuffer) override;
61 };
virtual void SendTitleTimes(int a_FadeInTicks, int a_DisplayTicks, int a_FadeOutTicks) override
virtual void HandlePacketStatusRequest(cByteBuffer &a_ByteBuffer) override
Definition: Player.h:27
virtual void WriteBlockEntity(cPacketizer &a_Pkt, const cBlockEntity &a_BlockEntity) override
Writes the block entity data for the specified block entity into the packet.
virtual void WriteEntityMetadata(cPacketizer &a_Pkt, const cEntity &a_Entity) override
Writes the metadata for the specified entity, not including the terminating 0xff. ...
virtual void SendResetTitle(void) override
virtual void SendCollectEntity(const cEntity &a_Entity, const cPlayer &a_Player, int a_Count) override
An object that can store incoming bytes and lets its clients read the bytes sequentially The bytes ar...
Definition: ByteBuffer.h:29
unsigned short UInt16
Definition: Globals.h:114
std::string AString
Definition: StringUtils.h:13
cProtocol_1_11_0 Super
Definition: Protocol_1_11.h:55
Composes an individual packet in the protocol's m_OutPacketBuffer; sends it just before being destruc...
Definition: Packetizer.h:28
cProtocol_1_11_0(cClientHandle *a_Client, const AString &a_ServerAddress, UInt16 a_ServerPort, UInt32 a_State)
Definition: Entity.h:73
virtual void WriteMobMetadata(cPacketizer &a_Pkt, const cMonster &a_Mob) override
Writes the mob-specific metadata for the specified mob.
unsigned int UInt32
Definition: Globals.h:113
virtual void SendHideTitle(void) override
cProtocol_1_10_0 Super
Definition: Protocol_1_11.h:27
virtual void HandlePacketBlockPlace(cByteBuffer &a_ByteBuffer) override
virtual void SendSpawnMob(const cMonster &a_Mob) override