Botcraft 1.21.5
Loading...
Searching...
No Matches
ServerboundContainerButtonClickPacket.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION > 476 /* > 1.13.2 */
2#pragma once
3
5
6namespace ProtocolCraft
7{
8 class ServerboundContainerButtonClickPacket : public BasePacket<ServerboundContainerButtonClickPacket>
9 {
10 public:
11 static constexpr std::string_view packet_name = "Container Button Click";
12
13#if PROTOCOL_VERSION < 766 /* < 1.20.5 */
14 SERIALIZED_FIELD(ContainerId, char);
15 SERIALIZED_FIELD(ButtonId, char);
16#else
17 SERIALIZED_FIELD(ContainerId, VarInt);
19#endif
20
22 };
23} //ProtocolCraft
24#endif
#define SERIALIZED_FIELD(Name,...)