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

#include <ClientboundPlayerChatPacket.hpp>

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

Public Member Functions

 SERIALIZED_FIELD (Sender, UUID)
 
 SERIALIZED_FIELD (Index, VarInt)
 
 SERIALIZED_FIELD (Signature, std::optional< std::array< unsigned char, 256 > >)
 
 SERIALIZED_FIELD (Body, SignedMessageBody)
 
 SERIALIZED_FIELD (UnsignedContent, std::optional< Chat >)
 
 SERIALIZED_FIELD (FilterMask, ProtocolCraft::FilterMask)
 
 SERIALIZED_FIELD (ChatType, ChatTypeBoundNetwork)
 
- Public Member Functions inherited from ProtocolCraft::BaseMessage< ClientboundPlayerChatPacket >
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
 

Public Attributes

 DECLARE_READ_WRITE_SERIALIZE
 

Static Public Attributes

static constexpr std::string_view packet_name = "Player Chat"
 

Additional Inherited Members

- Protected Types inherited from ProtocolCraft::BaseMessage< ClientboundPlayerChatPacket >
using THIS = ClientboundPlayerChatPacket
 
- Protected Member Functions inherited from ProtocolCraft::BaseMessage< ClientboundPlayerChatPacket >
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 25 of file ClientboundPlayerChatPacket.hpp.

Member Function Documentation

◆ SERIALIZED_FIELD() [1/7]

ProtocolCraft::ClientboundPlayerChatPacket::SERIALIZED_FIELD ( Body  ,
SignedMessageBody   
)

◆ SERIALIZED_FIELD() [2/7]

ProtocolCraft::ClientboundPlayerChatPacket::SERIALIZED_FIELD ( ChatType  ,
ChatTypeBoundNetwork   
)

◆ SERIALIZED_FIELD() [3/7]

ProtocolCraft::ClientboundPlayerChatPacket::SERIALIZED_FIELD ( FilterMask  ,
ProtocolCraft::FilterMask   
)

◆ SERIALIZED_FIELD() [4/7]

ProtocolCraft::ClientboundPlayerChatPacket::SERIALIZED_FIELD ( Index  ,
VarInt   
)

◆ SERIALIZED_FIELD() [5/7]

ProtocolCraft::ClientboundPlayerChatPacket::SERIALIZED_FIELD ( Sender  ,
UUID   
)

◆ SERIALIZED_FIELD() [6/7]

ProtocolCraft::ClientboundPlayerChatPacket::SERIALIZED_FIELD ( Signature  ,
std::optional< std::array< unsigned char, 256 > >   
)

◆ SERIALIZED_FIELD() [7/7]

ProtocolCraft::ClientboundPlayerChatPacket::SERIALIZED_FIELD ( UnsignedContent  ,
std::optional< Chat  
)

Member Data Documentation

◆ DECLARE_READ_WRITE_SERIALIZE

ProtocolCraft::ClientboundPlayerChatPacket::DECLARE_READ_WRITE_SERIALIZE

Definition at line 50 of file ClientboundPlayerChatPacket.hpp.

◆ packet_name

constexpr std::string_view ProtocolCraft::ClientboundPlayerChatPacket::packet_name = "Player Chat"
staticconstexpr

Definition at line 28 of file ClientboundPlayerChatPacket.hpp.


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