Botcraft 1.21.5
Loading...
Searching...
No Matches
ClientboundHorseScreenOpenPacket.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION > 451 /* > 1.13.2 */
2#pragma once
3
5
6namespace ProtocolCraft
7{
8 class ClientboundHorseScreenOpenPacket : public BasePacket<ClientboundHorseScreenOpenPacket>
9 {
10 public:
11 static constexpr std::string_view packet_name = "Horse Screen Open";
12
13#if PROTOCOL_VERSION < 768 /* < 1.21.2 */
14 SERIALIZED_FIELD(ContainerId, char);
15#else
16 SERIALIZED_FIELD(ContainerId, VarInt);
17#endif
18#if PROTOCOL_VERSION < 767 /* < 1.21 */
20#else
21 SERIALIZED_FIELD(InventoryColumns, VarInt);
22#endif
23 SERIALIZED_FIELD(EntityId, int);
24
26 };
27} //ProtocolCraft
28#endif
#define SERIALIZED_FIELD(Name,...)