67 virtual void SendMapData (
const cMap & a_Map,
int a_DataStartX,
int a_DataStartY)
override;
69 virtual void SendParticleEffect (
const AString & a_ParticleName,
float a_SrcX,
float a_SrcY,
float a_SrcZ,
float a_OffsetX,
float a_OffsetY,
float a_OffsetZ,
float a_ParticleData,
int a_ParticleAmount)
override;
73 virtual void SendSoundEffect (
const AString & a_SoundName,
double a_X,
double a_Y,
double a_Z,
float a_Volume,
float a_Pitch)
override;
virtual void SendParticleEffect(const AString &a_ParticleName, float a_SrcX, float a_SrcY, float a_SrcZ, float a_OffsetX, float a_OffsetY, float a_OffsetZ, float a_ParticleData, int a_ParticleAmount) override
virtual void SendMapData(const cMap &a_Map, int a_DataStartX, int a_DataStartY) override
virtual void WriteItem(cPacketizer &a_Pkt, const cItem &a_Item) override
Writes the item data into a packet.
virtual void SendBlockChange(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta) override
virtual void SendChunkData(int a_ChunkX, int a_ChunkZ, cChunkDataSerializer &a_Serializer) override
virtual UInt32 GetPacketID(ePacketType a_PacketType) override
Get the packet ID for a given packet.
virtual void HandlePacketPluginMessage(cByteBuffer &a_ByteBuffer) override
Class that manages the statistics and achievements of a single player.
cProtocol_1_13(cClientHandle *a_Client, const AString &a_ServerAddress, UInt16 a_ServerPort, UInt32 a_State)
virtual void Initialize(cClientHandle &a_Client) override
Called after construction so that the protocol class can initialize itself.
virtual void SendSoundEffect(const AString &a_SoundName, double a_X, double a_Y, double a_Z, float a_Volume, float a_Pitch) override
virtual void SendBlockChanges(int a_ChunkX, int a_ChunkZ, const sSetBlockVector &a_Changes) override
unsigned char BLOCKTYPE
The datatype used by blockdata.
Encapsulates an in-game world map.
virtual void SendScoreboardObjective(const AString &a_Name, const AString &a_DisplayName, Byte a_Mode) override
virtual void SendPaintingSpawn(const cPainting &a_Painting) override
unsigned char NIBBLETYPE
The datatype used by nibbledata (meta, light, skylight)
virtual void HandlePacketStatusRequest(cByteBuffer &a_ByteBuffer) override
virtual void SendTabCompletionResults(const AStringVector &a_Results) override
Holds a palette that maps between block type + state and numbers.
std::vector< AString > AStringVector
virtual void WriteEntityMetadata(cPacketizer &a_Pkt, const cEntity &a_Entity) override
Writes the metadata for the specified entity, not including the terminating 0xff. ...
Serializes one chunk's data to (possibly multiple) protocol versions.
virtual void SendStatistics(const cStatManager &a_Manager) override
An object that can store incoming bytes and lets its clients read the bytes sequentially The bytes ar...
virtual void SendPluginMessage(const AString &a_Channel, const AString &a_Message) override
std::shared_ptr< const BlockTypePalette > m_BlockTypePalette
The palette used to transform internal block type palette into the protocol-specific ID...
virtual bool ReadItem(cByteBuffer &a_ByteBuffer, cItem &a_Item, size_t a_KeepRemainingBytes) override
Reads an item out of the received data, sets a_Item to the values read.
std::map< UInt32, UInt32 > m_BlockTypeMap
Temporary hack for initial 1.13+ support while keeping BLOCKTYPE data: Map of the BLOCKTYPE::META to ...
Composes an individual packet in the protocol's m_OutPacketBuffer; sends it just before being destruc...
virtual AString GetPaletteVersion() const
Returns the string identifying the palettes' version, such as "1.13" or "1.14.4". ...
virtual void SendUpdateBlockEntity(cBlockEntity &a_BlockEntity) override
ePacketType
Logical types of outgoing packets.
virtual bool HandlePacket(cByteBuffer &a_ByteBuffer, UInt32 a_PacketType) override
Reads and handles the packet.
std::vector< sSetBlock > sSetBlockVector