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

#include <ClientboundBossEventPacket.hpp>

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

Public Member Functions

 DEFINE_CONDITION (Op02, GetOperation()==0||GetOperation()==2)
 
 DEFINE_CONDITION (Op03, GetOperation()==0||GetOperation()==3)
 
 DEFINE_CONDITION (Op04, GetOperation()==0||GetOperation()==4)
 
 DEFINE_CONDITION (Op05, GetOperation()==0||GetOperation()==5)
 
 SERIALIZED_FIELD (Id_, UUID)
 
 SERIALIZED_FIELD (Operation, VarInt)
 
 SERIALIZED_FIELD (Name_, Internal::Conditioned< Chat, &THIS::Op03 >)
 
 SERIALIZED_FIELD (Pct, Internal::Conditioned< float, &THIS::Op02 >)
 
 SERIALIZED_FIELD (Color, Internal::Conditioned< VarInt, &THIS::Op04 >)
 
 SERIALIZED_FIELD (Overlay, Internal::Conditioned< VarInt, &THIS::Op04 >)
 
 SERIALIZED_FIELD (Flags, Internal::Conditioned< unsigned char, &THIS::Op05 >)
 
- Public Member Functions inherited from ProtocolCraft::BaseMessage< ClientboundBossEventPacket >
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 = "Boss Event"
 

Additional Inherited Members

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

Member Function Documentation

◆ DEFINE_CONDITION() [1/4]

ProtocolCraft::ClientboundBossEventPacket::DEFINE_CONDITION ( Op02  ,
GetOperation()  = =0||GetOperation()==2 
)

◆ DEFINE_CONDITION() [2/4]

ProtocolCraft::ClientboundBossEventPacket::DEFINE_CONDITION ( Op03  ,
GetOperation()  = =0||GetOperation()==3 
)

◆ DEFINE_CONDITION() [3/4]

ProtocolCraft::ClientboundBossEventPacket::DEFINE_CONDITION ( Op04  ,
GetOperation()  = =0||GetOperation()==4 
)

◆ DEFINE_CONDITION() [4/4]

ProtocolCraft::ClientboundBossEventPacket::DEFINE_CONDITION ( Op05  ,
GetOperation()  = =0||GetOperation()==5 
)

◆ SERIALIZED_FIELD() [1/7]

ProtocolCraft::ClientboundBossEventPacket::SERIALIZED_FIELD ( Color  ,
Internal::Conditioned< VarInt, &THIS::Op04 >   
)

◆ SERIALIZED_FIELD() [2/7]

ProtocolCraft::ClientboundBossEventPacket::SERIALIZED_FIELD ( Flags  ,
Internal::Conditioned< unsigned char, &THIS::Op05 >   
)

◆ SERIALIZED_FIELD() [3/7]

ProtocolCraft::ClientboundBossEventPacket::SERIALIZED_FIELD ( Id_  ,
UUID   
)

◆ SERIALIZED_FIELD() [4/7]

ProtocolCraft::ClientboundBossEventPacket::SERIALIZED_FIELD ( Name_  ,
Internal::Conditioned< Chat, &THIS::Op03 >   
)

◆ SERIALIZED_FIELD() [5/7]

ProtocolCraft::ClientboundBossEventPacket::SERIALIZED_FIELD ( Operation  ,
VarInt   
)

◆ SERIALIZED_FIELD() [6/7]

ProtocolCraft::ClientboundBossEventPacket::SERIALIZED_FIELD ( Overlay  ,
Internal::Conditioned< VarInt, &THIS::Op04 >   
)

◆ SERIALIZED_FIELD() [7/7]

ProtocolCraft::ClientboundBossEventPacket::SERIALIZED_FIELD ( Pct  ,
Internal::Conditioned< float, &THIS::Op02 >   
)

Member Data Documentation

◆ DECLARE_READ_WRITE_SERIALIZE

ProtocolCraft::ClientboundBossEventPacket::DECLARE_READ_WRITE_SERIALIZE

Definition at line 26 of file ClientboundBossEventPacket.hpp.

◆ packet_name

constexpr std::string_view ProtocolCraft::ClientboundBossEventPacket::packet_name = "Boss Event"
staticconstexpr

Definition at line 11 of file ClientboundBossEventPacket.hpp.


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