Botcraft 1.21.4
Loading...
Searching...
No Matches
ClientboundSoundPacket.hpp
Go to the documentation of this file.
1#pragma once
2
4
5#if PROTOCOL_VERSION > 760 /* > 1.19.2 */
8#endif
9
10namespace ProtocolCraft
11{
12 class ClientboundSoundPacket : public BaseMessage<ClientboundSoundPacket>
13 {
14 public:
15 static constexpr std::string_view packet_name = "Sound";
16
17#if PROTOCOL_VERSION < 761 /* < 1.19.3 */
19#else
21#endif
26 SERIALIZED_FIELD(Volume, float);
27 SERIALIZED_FIELD(Pitch, float);
28#if PROTOCOL_VERSION > 758 /* > 1.18.2 */
29 SERIALIZED_FIELD(Seed, long long int);
30#endif
31
33 };
34} //ProtocolCraft
#define SERIALIZED_FIELD(Name,...)
static constexpr std::string_view packet_name
SERIALIZED_FIELD(Sound, Holder< SoundEvent >)
SERIALIZED_FIELD(Seed, long long int)