Botcraft 1.21.5
Loading...
Searching...
No Matches
ClientboundCustomSoundPacket.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION < 761 /* < 1.19.3 */
2#pragma once
3
5
6namespace ProtocolCraft
7{
8 class ClientboundCustomSoundPacket : public BasePacket<ClientboundCustomSoundPacket>
9 {
10 public:
11 static constexpr std::string_view packet_name = "Custom Sound";
12
13 SERIALIZED_FIELD(Name_, std::string);
14 SERIALIZED_FIELD(Source, VarInt);
15 SERIALIZED_FIELD(X, int);
16 SERIALIZED_FIELD(Y, int);
17 SERIALIZED_FIELD(Z, int);
18 SERIALIZED_FIELD(Volume, float);
19 SERIALIZED_FIELD(Pitch, float);
20#if PROTOCOL_VERSION > 758 /* > 1.18.2 */
21 SERIALIZED_FIELD(Seed, long long int);
22#endif
23
25 };
26} //ProtocolCraft
27#endif
#define DECLARE_READ_WRITE_SERIALIZE
Define auto serializable utilities and declare ReadImpl, WriteImpl and SerializeImpl virtual function...
#define SERIALIZED_FIELD(Name,...)