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

#include <ClientboundSetPlayerTeamPacket.hpp>

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

Public Member Functions

 DEFINE_CONDITION (Method02, GetMethod()==0||GetMethod()==2)
 
 DEFINE_CONDITION (Method034, GetMethod()==0||GetMethod()==3||GetMethod()==4)
 
 SERIALIZED_FIELD (Name_, std::string)
 
 SERIALIZED_FIELD (Method, char)
 
 SERIALIZED_FIELD (DisplayName, Internal::Conditioned< Chat, &THIS::Method02 >)
 
 SERIALIZED_FIELD (Options, Internal::Conditioned< char, &THIS::Method02 >)
 
 SERIALIZED_FIELD (NametagVisibility, Internal::Conditioned< std::string, &THIS::Method02 >)
 
 SERIALIZED_FIELD (CollisionRule, Internal::Conditioned< std::string, &THIS::Method02 >)
 
 SERIALIZED_FIELD (Color, Internal::Conditioned< VarInt, &THIS::Method02 >)
 
 SERIALIZED_FIELD (PlayerPrefix, Internal::Conditioned< Chat, &THIS::Method02 >)
 
 SERIALIZED_FIELD (PlayerSuffix, Internal::Conditioned< Chat, &THIS::Method02 >)
 
 SERIALIZED_FIELD (Players, Internal::Conditioned< std::vector< std::string >, &THIS::Method034 >)
 
- Public Member Functions inherited from ProtocolCraft::BaseMessage< ClientboundSetPlayerTeamPacket >
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 = "Set Player Team"
 

Additional Inherited Members

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

Member Function Documentation

◆ DEFINE_CONDITION() [1/2]

ProtocolCraft::ClientboundSetPlayerTeamPacket::DEFINE_CONDITION ( Method02  ,
GetMethod()  = =0||GetMethod()==2 
)

◆ DEFINE_CONDITION() [2/2]

ProtocolCraft::ClientboundSetPlayerTeamPacket::DEFINE_CONDITION ( Method034  ,
GetMethod()  = =0||GetMethod()==3||GetMethod()==4 
)

◆ SERIALIZED_FIELD() [1/10]

ProtocolCraft::ClientboundSetPlayerTeamPacket::SERIALIZED_FIELD ( CollisionRule  ,
Internal::Conditioned< std::string, &THIS::Method02 >   
)

◆ SERIALIZED_FIELD() [2/10]

ProtocolCraft::ClientboundSetPlayerTeamPacket::SERIALIZED_FIELD ( Color  ,
Internal::Conditioned< VarInt, &THIS::Method02 >   
)

◆ SERIALIZED_FIELD() [3/10]

ProtocolCraft::ClientboundSetPlayerTeamPacket::SERIALIZED_FIELD ( DisplayName  ,
Internal::Conditioned< Chat, &THIS::Method02 >   
)

◆ SERIALIZED_FIELD() [4/10]

ProtocolCraft::ClientboundSetPlayerTeamPacket::SERIALIZED_FIELD ( Method  ,
char   
)

◆ SERIALIZED_FIELD() [5/10]

ProtocolCraft::ClientboundSetPlayerTeamPacket::SERIALIZED_FIELD ( Name_  ,
std::string   
)

◆ SERIALIZED_FIELD() [6/10]

ProtocolCraft::ClientboundSetPlayerTeamPacket::SERIALIZED_FIELD ( NametagVisibility  ,
Internal::Conditioned< std::string, &THIS::Method02 >   
)

◆ SERIALIZED_FIELD() [7/10]

ProtocolCraft::ClientboundSetPlayerTeamPacket::SERIALIZED_FIELD ( Options  ,
Internal::Conditioned< char, &THIS::Method02 >   
)

◆ SERIALIZED_FIELD() [8/10]

ProtocolCraft::ClientboundSetPlayerTeamPacket::SERIALIZED_FIELD ( PlayerPrefix  ,
Internal::Conditioned< Chat, &THIS::Method02 >   
)

◆ SERIALIZED_FIELD() [9/10]

ProtocolCraft::ClientboundSetPlayerTeamPacket::SERIALIZED_FIELD ( Players  ,
Internal::Conditioned< std::vector< std::string >, &THIS::Method034 >   
)

◆ SERIALIZED_FIELD() [10/10]

ProtocolCraft::ClientboundSetPlayerTeamPacket::SERIALIZED_FIELD ( PlayerSuffix  ,
Internal::Conditioned< Chat, &THIS::Method02 >   
)

Member Data Documentation

◆ DECLARE_READ_WRITE_SERIALIZE

ProtocolCraft::ClientboundSetPlayerTeamPacket::DECLARE_READ_WRITE_SERIALIZE

Definition at line 39 of file ClientboundSetPlayerTeamPacket.hpp.

◆ packet_name

constexpr std::string_view ProtocolCraft::ClientboundSetPlayerTeamPacket::packet_name = "Set Player Team"
staticconstexpr

Definition at line 13 of file ClientboundSetPlayerTeamPacket.hpp.


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