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