Botcraft 1.21.4
Loading...
Searching...
No Matches
ProtocolCraft::ClientboundPlayerInfoUpdatePacket Class Reference

#include <ClientboundPlayerInfoUpdatePacket.hpp>

Inheritance diagram for ProtocolCraft::ClientboundPlayerInfoUpdatePacket:
ProtocolCraft::BaseMessage< ClientboundPlayerInfoUpdatePacket > ProtocolCraft::Message ProtocolCraft::NetworkType

Static Public Attributes

static constexpr std::string_view packet_name = "Player Info Update"
 

Private Member Functions

std::vector< PlayerInfoUpdateActionReadActions (ReadIterator &iter, size_t &length) const
 
void WriteActions (const std::vector< PlayerInfoUpdateAction > &actions, WriteContainer &container) const
 
std::map< UUID, PlayerInfoUpdateEntryReadEntries (ReadIterator &iter, size_t &length) const
 
void WriteEntries (const std::map< UUID, PlayerInfoUpdateEntry > &entries, WriteContainer &container) const
 
std::optional< Json::ValueSerializeEntries (const std::map< UUID, PlayerInfoUpdateEntry > &entries) const
 
 SERIALIZED_FIELD (Actions, Internal::CustomType< std::vector< PlayerInfoUpdateAction >, &THIS::ReadActions, &THIS::WriteActions >)
 
 SERIALIZED_FIELD (Entries, Internal::CustomType< std::map< UUID, PlayerInfoUpdateEntry >, &THIS::ReadEntries, &THIS::WriteEntries, &THIS::SerializeEntries >)
 

Private Attributes

 DECLARE_READ_WRITE_SERIALIZE
 

Additional Inherited Members

- Public Member Functions inherited from ProtocolCraft::BaseMessage< ClientboundPlayerInfoUpdatePacket >
virtual ~BaseMessage () override
 
virtual int GetId () const override
 
virtual std::string_view GetName () const override
 
- Public Member Functions inherited from ProtocolCraft::Message
virtual ~Message ()
 
virtual void Write (WriteContainer &container) const override
 
void Dispatch (Handler *handler)
 
- Public Member Functions inherited from ProtocolCraft::NetworkType
virtual ~NetworkType ()
 
virtual void Read (ReadIterator &iter, size_t &length)
 
virtual Json::Value Serialize () const
 
- Protected Types inherited from ProtocolCraft::BaseMessage< ClientboundPlayerInfoUpdatePacket >
using THIS = ClientboundPlayerInfoUpdatePacket
 
- Protected Member Functions inherited from ProtocolCraft::BaseMessage< ClientboundPlayerInfoUpdatePacket >
virtual void DispatchImpl (Handler *handler) override
 
- Protected Member Functions inherited from ProtocolCraft::NetworkType
virtual void ReadImpl (ReadIterator &iter, size_t &length)=0
 
virtual void WriteImpl (WriteContainer &container) const =0
 
virtual Json::Value SerializeImpl () const =0
 

Detailed Description

Definition at line 56 of file ClientboundPlayerInfoUpdatePacket.hpp.

Member Function Documentation

◆ ReadActions()

std::vector< PlayerInfoUpdateAction > ProtocolCraft::ClientboundPlayerInfoUpdatePacket::ReadActions ( ReadIterator iter,
size_t &  length 
) const
inlineprivate

◆ ReadEntries()

◆ SERIALIZED_FIELD() [1/2]

ProtocolCraft::ClientboundPlayerInfoUpdatePacket::SERIALIZED_FIELD ( Actions  ,
Internal::CustomType< std::vector< PlayerInfoUpdateAction >, &THIS::ReadActions, &THIS::WriteActions  
)
private

◆ SERIALIZED_FIELD() [2/2]

ProtocolCraft::ClientboundPlayerInfoUpdatePacket::SERIALIZED_FIELD ( Entries  ,
Internal::CustomType< std::map< UUID, PlayerInfoUpdateEntry >, &THIS::ReadEntries, &THIS::WriteEntries, &THIS::SerializeEntries  
)
private

◆ SerializeEntries()

std::optional< Json::Value > ProtocolCraft::ClientboundPlayerInfoUpdatePacket::SerializeEntries ( const std::map< UUID, PlayerInfoUpdateEntry > &  entries) const
inlineprivate

◆ WriteActions()

void ProtocolCraft::ClientboundPlayerInfoUpdatePacket::WriteActions ( const std::vector< PlayerInfoUpdateAction > &  actions,
WriteContainer container 
) const
inlineprivate

◆ WriteEntries()

void ProtocolCraft::ClientboundPlayerInfoUpdatePacket::WriteEntries ( const std::map< UUID, PlayerInfoUpdateEntry > &  entries,
WriteContainer container 
) const
inlineprivate

Member Data Documentation

◆ DECLARE_READ_WRITE_SERIALIZE

ProtocolCraft::ClientboundPlayerInfoUpdatePacket::DECLARE_READ_WRITE_SERIALIZE
private

Definition at line 241 of file ClientboundPlayerInfoUpdatePacket.hpp.

◆ packet_name

constexpr std::string_view ProtocolCraft::ClientboundPlayerInfoUpdatePacket::packet_name = "Player Info Update"
staticconstexpr

Definition at line 59 of file ClientboundPlayerInfoUpdatePacket.hpp.


The documentation for this class was generated from the following file: