52 virtual void SendMapData (
const cMap & a_Map,
int a_DataStartX,
int a_DataStartY)
override;
std::basic_string_view< std::byte > ContiguousByteBufferView
eMonsterType
Identifies individual monster type.
An object that can store incoming bytes and lets its clients read the bytes sequentially The bytes ar...
Container for a single chat message composed of multiple functional parts.
Encapsulates an in-game world map.
Composes an individual packet in the protocol's m_OutPacketBuffer; sends it just before being destruc...
ePacketType
Logical types of outgoing packets.
Version
The protocol version number, received from the client in the Handshake packet.
cProtocol_1_8_0(cClientHandle *a_Client, const AString &a_ServerAddress, State a_State)
virtual void SendSpawnMob(const cMonster &a_Mob) override
virtual void HandlePacketSteerVehicle(cByteBuffer &a_ByteBuffer) override
virtual void SendEntitySpawn(const cEntity &a_Entity, const UInt8 a_ObjectType, const Int32 a_ObjectData) override
Sends the entity type and entity-dependent data required for the entity to initially spawn.
virtual Version GetProtocolVersion() const override
Returns the protocol version.
virtual void WriteMobMetadata(cPacketizer &a_Pkt, const cMonster &a_Mob) const override
Writes the mob-specific metadata for the specified mob.
virtual void HandlePacketUseEntity(cByteBuffer &a_ByteBuffer) override
cProtocol_1_9_0(cClientHandle *a_Client, const AString &a_ServerAddress, State a_State)
virtual void SendKeepAlive(UInt32 a_PingID) override
virtual unsigned char GetProtocolEntityAnimation(EntityAnimation a_Animation) const override
Converts an animation into an ID suitable for use with the Entity Animation packet.
virtual UInt32 GetProtocolMobType(eMonsterType a_MobType) const override
Converts eMonsterType to protocol-specific mob types.
virtual void SendEntityEquipment(const cEntity &a_Entity, short a_SlotNum, const cItem &a_Item) override
virtual void HandlePacketBlockPlace(cByteBuffer &a_ByteBuffer) override
virtual void WriteItem(cPacketizer &a_Pkt, const cItem &a_Item) const override
Writes the item data into a packet.
virtual void SendPaintingSpawn(const cPainting &a_Painting) override
virtual void HandlePacketPlayerPos(cByteBuffer &a_ByteBuffer) override
virtual void SendDetachEntity(const cEntity &a_Entity, const cEntity &a_PreviousVehicle) override
virtual void SendBossBarUpdateTitle(UInt32 a_UniqueID, const cCompositeChat &a_Title) override
virtual void SendEntityMetadata(const cEntity &a_Entity) override
virtual void HandlePacketUseItem(cByteBuffer &a_ByteBuffer)
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.
UInt32 m_OutstandingTeleportId
Whether the current teleport ID has been confirmed by the client.
virtual void SendUnloadChunk(int a_ChunkX, int a_ChunkZ) override
virtual void SendPlayerSpawn(const cPlayer &a_Player) override
virtual void SendBossBarUpdateFlags(UInt32 a_UniqueID, bool a_DarkenSky, bool a_PlayEndMusic, bool a_CreateFog) override
virtual void SendMapData(const cMap &a_Map, int a_DataStartX, int a_DataStartY) override
virtual UInt32 GetPacketID(ePacketType a_Packet) const override
Get the packet ID for a given packet.
virtual void HandlePacketWindowClick(cByteBuffer &a_ByteBuffer) override
virtual void HandlePacketClientSettings(cByteBuffer &a_ByteBuffer) override
virtual void SendBossBarAdd(UInt32 a_UniqueID, const cCompositeChat &a_Title, float a_FractionFilled, BossBarColor a_Color, BossBarDivisionType a_DivisionType, bool a_DarkenSky, bool a_PlayEndMusic, bool a_CreateFog) override
virtual void SendPlayerPermissionLevel() override
virtual void ParseItemMetadata(cItem &a_Item, ContiguousByteBufferView a_Metadata) const override
Parses item metadata as read by ReadItem(), into the item enchantments.
virtual void SendEntityPosition(const cEntity &a_Entity) 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 HandlePacketEntityAction(cByteBuffer &a_ByteBuffer) override
virtual void SendBossBarUpdateStyle(UInt32 a_UniqueID, BossBarColor a_Color, BossBarDivisionType a_DivisionType) override
virtual void SendSoundEffect(const AString &a_SoundName, Vector3d a_Origin, float a_Volume, float a_Pitch) override
virtual void HandlePacketPlayerPosLook(cByteBuffer &a_ByteBuffer) override
virtual void SendBossBarUpdateHealth(UInt32 a_UniqueID, float a_FractionFilled) override
virtual void SendBossBarRemove(UInt32 a_UniqueID) override
virtual bool HandlePacket(cByteBuffer &a_ByteBuffer, UInt32 a_PacketType) override
Reads and handles the packet.
virtual void SendUnleashEntity(const cEntity &a_Entity) override
virtual void SendPlayerMoveLook(void) override
virtual void HandlePacketBoatSteer(cByteBuffer &a_ByteBuffer)
virtual void HandleConfirmTeleport(cByteBuffer &a_ByteBuffer)
eMetadataType
Types used within metadata.
@ METADATA_TYPE_DIRECTION
@ METADATA_TYPE_OPTIONAL_POSITION
@ METADATA_TYPE_OPTIONAL_UUID
virtual void HandleVanillaPluginMessage(cByteBuffer &a_ByteBuffer, std::string_view a_Channel) override
Parses Vanilla plugin messages into specific ClientHandle calls.
virtual void SendThunderbolt(Vector3i a_Origin) override
virtual void HandlePacketUpdateSign(cByteBuffer &a_ByteBuffer) override
virtual void HandlePacketBlockDig(cByteBuffer &a_ByteBuffer) override
virtual void SendLeashEntity(const cEntity &a_Entity, const cEntity &a_EntityLeashedTo) override
virtual void HandlePacketAnimation(cByteBuffer &a_ByteBuffer) override
virtual void SendAttachEntity(const cEntity &a_Entity, const cEntity &a_Vehicle) override
virtual void HandlePacketVehicleMove(cByteBuffer &a_ByteBuffer)
virtual void SendExperienceOrb(const cExpOrb &a_ExpOrb) override
virtual void HandlePacketTabComplete(cByteBuffer &a_ByteBuffer) override
bool m_IsTeleportIdConfirmed
The current teleport ID.
virtual signed char GetProtocolEntityStatus(EntityAnimation a_Animation) const override
Converts an animation into an ID suitable for use with the Entity Status packet.
The version 108 protocol, used by 1.9.1.
virtual Version GetProtocolVersion() const override
Returns the protocol version.
virtual void SendLogin(const cPlayer &a_Player, const cWorld &a_World) override
The version 109 protocol, used by 1.9.2.
virtual Version GetProtocolVersion() const override
Returns the protocol version.
The version 110 protocol, used by 1.9.3 and 1.9.4.
virtual UInt32 GetPacketID(ePacketType a_Packet) const override
Get the packet ID for a given packet.
virtual Version GetProtocolVersion() const override
Returns the protocol version.
virtual void SendUpdateSign(Vector3i a_BlockPos, const AString &a_Line1, const AString &a_Line2, const AString &a_Line3, const AString &a_Line4) override