Botcraft 1.21.5
Loading...
Searching...
No Matches
ProtocolCraft::Components::HashedDataComponentPatch Class Reference

#include <DataComponents.hpp>

Inheritance diagram for ProtocolCraft::Components::HashedDataComponentPatch:
ProtocolCraft::NetworkType

Public Member Functions

 HashedDataComponentPatch ()=default
 
 HashedDataComponentPatch (const DataComponentPatch &patch)
 
 SERIALIZED_FIELD (AddedComponents, Internal::DiffType< std::map< DataComponentTypes, int >, std::map< VarInt, int > >)
 
 SERIALIZED_FIELD (RemovedComponents, Internal::DiffType< std::vector< DataComponentTypes >, std::vector< VarInt > >)
 
- Public Member Functions inherited from ProtocolCraft::NetworkType
virtual ~NetworkType ()
 
virtual void Read (ReadIterator &iter, size_t &length)
 
virtual void Write (WriteContainer &container) const
 
virtual Json::Value Serialize () const
 

Public Attributes

 DECLARE_READ_WRITE_SERIALIZE
 

Additional Inherited Members

- 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 185 of file DataComponents.hpp.

Constructor & Destructor Documentation

◆ HashedDataComponentPatch() [1/2]

ProtocolCraft::Components::HashedDataComponentPatch::HashedDataComponentPatch ( )
default

◆ HashedDataComponentPatch() [2/2]

ProtocolCraft::Components::HashedDataComponentPatch::HashedDataComponentPatch ( const DataComponentPatch patch)

Member Function Documentation

◆ SERIALIZED_FIELD() [1/2]

ProtocolCraft::Components::HashedDataComponentPatch::SERIALIZED_FIELD ( AddedComponents  ,
Internal::DiffType< std::map< DataComponentTypes, int >, std::map< VarInt, int > >   
)

◆ SERIALIZED_FIELD() [2/2]

ProtocolCraft::Components::HashedDataComponentPatch::SERIALIZED_FIELD ( RemovedComponents  ,
Internal::DiffType< std::vector< DataComponentTypes >, std::vector< VarInt > >   
)

Member Data Documentation

◆ DECLARE_READ_WRITE_SERIALIZE

ProtocolCraft::Components::HashedDataComponentPatch::DECLARE_READ_WRITE_SERIALIZE

Definition at line 194 of file DataComponents.hpp.


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