Cuberite
A lightweight, fast and extensible game server for Minecraft
Protocol_1_10.h
Go to the documentation of this file.
1 
2 // Protocol_1_10.h
3 
4 /*
5 Declares the 1.10 protocol classes:
6  - cProtocol_1_10
7  - release 1.10 protocol (#210), also used by 1.10.1 and 1.10.2
8 */
9 
10 
11 
12 
13 
14 #pragma once
15 
16 #include "Protocol_1_9.h"
17 
18 
19 
20 
21 
23  public cProtocol_1_9_4
24 {
26 
27 public:
28 
29  using Super::Super;
30 
31 protected:
32 
33  virtual void SendSoundEffect(const AString & a_SoundName, Vector3d a_Origin, float a_Volume, float a_Pitch) override;
34 
35  virtual UInt32 GetProtocolMobType(eMonsterType a_MobType) const override;
36  virtual Version GetProtocolVersion() const override;
37 
38  virtual void HandlePacketResourcePackStatus(cByteBuffer & a_ByteBuffer) override;
39 
40  virtual void WriteEntityMetadata(cPacketizer & a_Pkt, const cEntity & a_Entity) const override;
41  virtual void WriteMobMetadata(cPacketizer & a_Pkt, const cMonster & a_Mob) const override;
42 };
unsigned int UInt32
Definition: Globals.h:157
eMonsterType
Identifies individual monster type.
Definition: MonsterTypes.h:11
std::string AString
Definition: StringUtils.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
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 Version GetProtocolVersion() const override
Returns the protocol version.
virtual UInt32 GetProtocolMobType(eMonsterType a_MobType) const override
Converts eMonsterType to protocol-specific mob types.
virtual void HandlePacketResourcePackStatus(cByteBuffer &a_ByteBuffer) override
virtual void SendSoundEffect(const AString &a_SoundName, Vector3d a_Origin, float a_Volume, float a_Pitch) override
virtual void WriteMobMetadata(cPacketizer &a_Pkt, const cMonster &a_Mob) const override
Writes the mob-specific metadata for the specified mob.
The version 110 protocol, used by 1.9.3 and 1.9.4.
Definition: Protocol_1_9.h:170
cProtocol_1_9_2 Super
Definition: Protocol_1_9.h:171