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  cProtocol_1_10_0(cClientHandle * a_Client, const AString &a_ServerAddress, UInt16 a_ServerPort, UInt32 a_State);
29 
30  virtual void SendSoundEffect(const AString & a_SoundName, double a_X, double a_Y, double a_Z, float a_Volume, float a_Pitch) override;
31 
32  virtual void HandlePacketStatusRequest(cByteBuffer & a_ByteBuffer) override;
33 
34 protected:
35  virtual void WriteEntityMetadata(cPacketizer & a_Pkt, const cEntity & a_Entity) override;
36  virtual void WriteMobMetadata(cPacketizer & a_Pkt, const cMonster & a_Mob) override;
37  virtual void WriteBlockEntity(cPacketizer & a_Pkt, const cBlockEntity & a_BlockEntity) override;
38 };
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 HandlePacketStatusRequest(cByteBuffer &a_ByteBuffer) override
The version 110 protocol, used by 1.9.3 and 1.9.4.
Definition: Protocol_1_9.h:326
cProtocol_1_9_4 Super
Definition: Protocol_1_10.h:25
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 SendSoundEffect(const AString &a_SoundName, double a_X, double a_Y, double a_Z, float a_Volume, float a_Pitch) override
An object that can store incoming bytes and lets its clients read the bytes sequentially The bytes ar...
Definition: ByteBuffer.h:29
virtual void WriteMobMetadata(cPacketizer &a_Pkt, const cMonster &a_Mob) override
Writes the mob-specific metadata for the specified mob.
unsigned short UInt16
Definition: Globals.h:114
std::string AString
Definition: StringUtils.h:13
Composes an individual packet in the protocol's m_OutPacketBuffer; sends it just before being destruc...
Definition: Packetizer.h:28
Definition: Entity.h:73
unsigned int UInt32
Definition: Globals.h:113
cProtocol_1_10_0(cClientHandle *a_Client, const AString &a_ServerAddress, UInt16 a_ServerPort, UInt32 a_State)