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

#include <ClientboundSoundEntityPacket.hpp>

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

Public Member Functions

 SERIALIZED_FIELD (Sound, Holder< SoundEvent >)
 
 SERIALIZED_FIELD (Source, VarInt)
 
 SERIALIZED_FIELD (Id_, VarInt)
 
 SERIALIZED_FIELD (Volume, float)
 
 SERIALIZED_FIELD (Pitch, float)
 
 SERIALIZED_FIELD (Seed, long long int)
 
- Public Member Functions inherited from ProtocolCraft::BaseMessage< ClientboundSoundEntityPacket >
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 = "Sound Entity"
 

Additional Inherited Members

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

Member Function Documentation

◆ SERIALIZED_FIELD() [1/6]

ProtocolCraft::ClientboundSoundEntityPacket::SERIALIZED_FIELD ( Id_  ,
VarInt   
)

◆ SERIALIZED_FIELD() [2/6]

ProtocolCraft::ClientboundSoundEntityPacket::SERIALIZED_FIELD ( Pitch  ,
float   
)

◆ SERIALIZED_FIELD() [3/6]

ProtocolCraft::ClientboundSoundEntityPacket::SERIALIZED_FIELD ( Seed  ,
long long int   
)

◆ SERIALIZED_FIELD() [4/6]

ProtocolCraft::ClientboundSoundEntityPacket::SERIALIZED_FIELD ( Sound  ,
Holder< SoundEvent  
)

◆ SERIALIZED_FIELD() [5/6]

ProtocolCraft::ClientboundSoundEntityPacket::SERIALIZED_FIELD ( Source  ,
VarInt   
)

◆ SERIALIZED_FIELD() [6/6]

ProtocolCraft::ClientboundSoundEntityPacket::SERIALIZED_FIELD ( Volume  ,
float   
)

Member Data Documentation

◆ DECLARE_READ_WRITE_SERIALIZE

ProtocolCraft::ClientboundSoundEntityPacket::DECLARE_READ_WRITE_SERIALIZE

Definition at line 31 of file ClientboundSoundEntityPacket.hpp.

◆ packet_name

constexpr std::string_view ProtocolCraft::ClientboundSoundEntityPacket::packet_name = "Sound Entity"
staticconstexpr

Definition at line 16 of file ClientboundSoundEntityPacket.hpp.


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