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

#include <ClientboundExplodePacket.hpp>

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

Static Public Attributes

static constexpr std::string_view packet_name = "Explode"
 

Private Member Functions

std::vector< NetworkPositionReadToBlow (ReadIterator &iter, size_t &length) const
 
void WriteToBlow (const std::vector< NetworkPosition > &to_blow, WriteContainer &container) const
 
 SERIALIZED_FIELD (Center, std::array< double, 3 >)
 
 SERIALIZED_FIELD (PlayerKnockback, std::optional< std::array< double, 3 > >)
 
 SERIALIZED_FIELD (ExplosionParticle, Particle)
 
 SERIALIZED_FIELD (ExplosionSound, Holder< SoundEvent >)
 

Private Attributes

 DECLARE_READ_WRITE_SERIALIZE
 

Additional Inherited Members

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

Member Function Documentation

◆ ReadToBlow()

std::vector< NetworkPosition > ProtocolCraft::ClientboundExplodePacket::ReadToBlow ( ReadIterator iter,
size_t &  length 
) const
inlineprivate

Definition at line 23 of file ClientboundExplodePacket.hpp.

◆ SERIALIZED_FIELD() [1/4]

ProtocolCraft::ClientboundExplodePacket::SERIALIZED_FIELD ( Center  ,
std::array< double, 3 >   
)
private

◆ SERIALIZED_FIELD() [2/4]

ProtocolCraft::ClientboundExplodePacket::SERIALIZED_FIELD ( ExplosionParticle  ,
Particle   
)
private

◆ SERIALIZED_FIELD() [3/4]

ProtocolCraft::ClientboundExplodePacket::SERIALIZED_FIELD ( ExplosionSound  ,
Holder< SoundEvent  
)
private

◆ SERIALIZED_FIELD() [4/4]

ProtocolCraft::ClientboundExplodePacket::SERIALIZED_FIELD ( PlayerKnockback  ,
std::optional< std::array< double, 3 > >   
)
private

◆ WriteToBlow()

void ProtocolCraft::ClientboundExplodePacket::WriteToBlow ( const std::vector< NetworkPosition > &  to_blow,
WriteContainer container 
) const
inlineprivate

Definition at line 43 of file ClientboundExplodePacket.hpp.

Member Data Documentation

◆ DECLARE_READ_WRITE_SERIALIZE

ProtocolCraft::ClientboundExplodePacket::DECLARE_READ_WRITE_SERIALIZE
private

Definition at line 95 of file ClientboundExplodePacket.hpp.

◆ packet_name

constexpr std::string_view ProtocolCraft::ClientboundExplodePacket::packet_name = "Explode"
staticconstexpr

Definition at line 20 of file ClientboundExplodePacket.hpp.


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