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 
31  using Super::Super;
32 
33 protected:
34 
35  virtual void SendCollectEntity (const cEntity & a_Collected, const cEntity & a_Collector, unsigned a_Count) override;
36  virtual void SendEntityAnimation (const cEntity & a_Entity, EntityAnimation a_Animation) override;
37  virtual void SendHideTitle (void) override;
38  virtual void SendResetTitle (void) override;
39  virtual void SendSpawnMob (const cMonster & a_Mob) override;
40  virtual void SendTitleTimes (int a_FadeInTicks, int a_DisplayTicks, int a_FadeOutTicks) override;
41  virtual void SendUpdateBlockEntity(cBlockEntity & a_BlockEntity) override;
42 
43  virtual signed char GetProtocolEntityStatus(EntityAnimation a_Animation) const override;
44  virtual UInt32 GetProtocolMobType(eMonsterType a_MobType) const override;
45  virtual Version GetProtocolVersion() const override;
46 
47  virtual void HandlePacketBlockPlace(cByteBuffer & a_ByteBuffer) override;
48 
49  virtual void WriteBlockEntity(cFastNBTWriter & a_Writer, const cBlockEntity & a_BlockEntity) const override;
50  virtual void WriteEntityMetadata(cPacketizer & a_Pkt, const cEntity & a_Entity) const override;
51  virtual void WriteMobMetadata(cPacketizer & a_Pkt, const cMonster & a_Mob) const override;
52 };
53 
54 
55 
56 
57 
59  public cProtocol_1_11_0
60 {
62 
63 public:
64 
65  using Super::Super;
66 
67 protected:
68 
69  virtual Version GetProtocolVersion() const override;
70 };
EntityAnimation
Definition: Defines.h:458
unsigned int UInt32
Definition: Globals.h:157
eMonsterType
Identifies individual monster type.
Definition: MonsterTypes.h:11
An object that can store incoming bytes and lets its clients read the bytes sequentially The bytes ar...
Definition: ByteBuffer.h:32
Definition: Entity.h:76
Composes an individual packet in the protocol's m_OutPacketBuffer; sends it just before being destruc...
Definition: Packetizer.h:60
Version
The protocol version number, received from the client in the Handshake packet.
Definition: Protocol.h:335
cProtocol_1_9_4 Super
Definition: Protocol_1_10.h:25
virtual void WriteMobMetadata(cPacketizer &a_Pkt, const cMonster &a_Mob) const override
Writes the mob-specific metadata for the specified mob.
virtual Version GetProtocolVersion() const override
Returns the protocol version.
cProtocol_1_10_0 Super
Definition: Protocol_1_11.h:27
virtual void SendResetTitle(void) override
virtual void WriteBlockEntity(cFastNBTWriter &a_Writer, const cBlockEntity &a_BlockEntity) const override
Writes the block entity data for the specified block entity into the packet.
virtual void SendEntityAnimation(const cEntity &a_Entity, EntityAnimation a_Animation) override
virtual void SendCollectEntity(const cEntity &a_Collected, const cEntity &a_Collector, unsigned a_Count) override
virtual void WriteEntityMetadata(cPacketizer &a_Pkt, const cEntity &a_Entity) const override
Writes the metadata for the specified entity, not including the terminating 0x7f.
virtual void SendSpawnMob(const cMonster &a_Mob) override
virtual void SendHideTitle(void) override
virtual signed char GetProtocolEntityStatus(EntityAnimation a_Animation) const override
Converts an animation into an ID suitable for use with the Entity Status packet.
virtual UInt32 GetProtocolMobType(eMonsterType a_MobType) const override
Converts eMonsterType to protocol-specific mob types.
virtual void HandlePacketBlockPlace(cByteBuffer &a_ByteBuffer) override
virtual void SendUpdateBlockEntity(cBlockEntity &a_BlockEntity) override
virtual void SendTitleTimes(int a_FadeInTicks, int a_DisplayTicks, int a_FadeOutTicks) override
virtual Version GetProtocolVersion() const override
Returns the protocol version.
The version 110 protocol, used by 1.9.3 and 1.9.4.
Definition: Protocol_1_9.h:170