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

#include <ClientboundBlockEventPacket.hpp>

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

Public Member Functions

 SERIALIZED_FIELD (Pos, NetworkPosition)
 
 SERIALIZED_FIELD (B0, unsigned char)
 
 SERIALIZED_FIELD (B1, unsigned char)
 
 SERIALIZED_FIELD (Block, VarInt)
 
- Public Member Functions inherited from ProtocolCraft::BaseMessage< ClientboundBlockEventPacket >
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 = "Block Event"
 

Additional Inherited Members

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

Member Function Documentation

◆ SERIALIZED_FIELD() [1/4]

ProtocolCraft::ClientboundBlockEventPacket::SERIALIZED_FIELD ( B0  ,
unsigned char   
)

◆ SERIALIZED_FIELD() [2/4]

ProtocolCraft::ClientboundBlockEventPacket::SERIALIZED_FIELD ( B1  ,
unsigned char   
)

◆ SERIALIZED_FIELD() [3/4]

ProtocolCraft::ClientboundBlockEventPacket::SERIALIZED_FIELD ( Block  ,
VarInt   
)

◆ SERIALIZED_FIELD() [4/4]

ProtocolCraft::ClientboundBlockEventPacket::SERIALIZED_FIELD ( Pos  ,
NetworkPosition   
)

Member Data Documentation

◆ DECLARE_READ_WRITE_SERIALIZE

ProtocolCraft::ClientboundBlockEventPacket::DECLARE_READ_WRITE_SERIALIZE

Definition at line 18 of file ClientboundBlockEventPacket.hpp.

◆ packet_name

constexpr std::string_view ProtocolCraft::ClientboundBlockEventPacket::packet_name = "Block Event"
staticconstexpr

Definition at line 11 of file ClientboundBlockEventPacket.hpp.


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