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

#include <ClientboundExplodePacket.hpp>

Inheritance diagram for ProtocolCraft::ClientboundExplodePacket:
ProtocolCraft::BasePacket< ClientboundExplodePacket > ProtocolCraft::Packet ProtocolCraft::NetworkType

Public Member Functions

 SERIALIZED_FIELD (Center, std::array< double, 3 >)
 
 SERIALIZED_FIELD (Radius, float)
 
 SERIALIZED_FIELD (BlockCount, int)
 
 SERIALIZED_FIELD (PlayerKnockback, std::optional< std::array< double, 3 > >)
 
 SERIALIZED_FIELD (ExplosionParticle, Particle)
 
 SERIALIZED_FIELD (ExplosionSound, Holder< SoundEvent >)
 
 SERIALIZED_FIELD (BlockParticles, std::vector< std::pair< VarInt, ExplosionParticleInfo > >)
 
- Public Member Functions inherited from ProtocolCraft::BasePacket< ClientboundExplodePacket >
virtual ~BasePacket () override
 
virtual int GetId () const override
 
virtual std::string_view GetName () const override
 
- Public Member Functions inherited from ProtocolCraft::Packet
virtual ~Packet ()
 
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 = "Explode"
 

Additional Inherited Members

- Protected Types inherited from ProtocolCraft::BasePacket< ClientboundExplodePacket >
using THIS = ClientboundExplodePacket
 
- Protected Member Functions inherited from ProtocolCraft::BasePacket< 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 20 of file ClientboundExplodePacket.hpp.

Member Function Documentation

◆ SERIALIZED_FIELD() [1/7]

ProtocolCraft::ClientboundExplodePacket::SERIALIZED_FIELD ( BlockCount  ,
int   
)

◆ SERIALIZED_FIELD() [2/7]

ProtocolCraft::ClientboundExplodePacket::SERIALIZED_FIELD ( BlockParticles  ,
std::vector< std::pair< VarInt, ExplosionParticleInfo > >   
)

◆ SERIALIZED_FIELD() [3/7]

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

◆ SERIALIZED_FIELD() [4/7]

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

◆ SERIALIZED_FIELD() [5/7]

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

◆ SERIALIZED_FIELD() [6/7]

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

◆ SERIALIZED_FIELD() [7/7]

ProtocolCraft::ClientboundExplodePacket::SERIALIZED_FIELD ( Radius  ,
float   
)

Member Data Documentation

◆ DECLARE_READ_WRITE_SERIALIZE

ProtocolCraft::ClientboundExplodePacket::DECLARE_READ_WRITE_SERIALIZE

Definition at line 107 of file ClientboundExplodePacket.hpp.

◆ packet_name

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

Definition at line 23 of file ClientboundExplodePacket.hpp.


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