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

#include <ClientboundAwardStatsPacket.hpp>

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

Static Public Attributes

static constexpr std::string_view packet_name = "Award Stats"
 

Private Member Functions

std::optional< Json::ValueSerializeStats (const std::map< std::pair< int, int >, int > &stats) const
 
 SERIALIZED_FIELD (Stats, Internal::CustomType< std::map< std::pair< VarInt, VarInt >, VarInt >, nullptr, nullptr, &THIS::SerializeStats >)
 

Private Attributes

 DECLARE_READ_WRITE_SERIALIZE
 

Additional Inherited Members

- Public Member Functions inherited from ProtocolCraft::BaseMessage< ClientboundAwardStatsPacket >
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< ClientboundAwardStatsPacket >
using THIS = ClientboundAwardStatsPacket
 
- Protected Member Functions inherited from ProtocolCraft::BaseMessage< ClientboundAwardStatsPacket >
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 12 of file ClientboundAwardStatsPacket.hpp.

Member Function Documentation

◆ SERIALIZED_FIELD()

ProtocolCraft::ClientboundAwardStatsPacket::SERIALIZED_FIELD ( Stats  ,
Internal::CustomType< std::map< std::pair< VarInt, VarInt >, VarInt >, nullptr, nullptr, &THIS::SerializeStats  
)
private

◆ SerializeStats()

std::optional< Json::Value > ProtocolCraft::ClientboundAwardStatsPacket::SerializeStats ( const std::map< std::pair< int, int >, int > &  stats) const
inlineprivate

Definition at line 19 of file ClientboundAwardStatsPacket.hpp.

Member Data Documentation

◆ DECLARE_READ_WRITE_SERIALIZE

ProtocolCraft::ClientboundAwardStatsPacket::DECLARE_READ_WRITE_SERIALIZE
private

Definition at line 40 of file ClientboundAwardStatsPacket.hpp.

◆ packet_name

constexpr std::string_view ProtocolCraft::ClientboundAwardStatsPacket::packet_name = "Award Stats"
staticconstexpr

Definition at line 15 of file ClientboundAwardStatsPacket.hpp.


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