Botcraft 1.21.4
Loading...
Searching...
No Matches
ClientboundContainerClosePacket.hpp
Go to the documentation of this file.
1#pragma once
2
4
5namespace ProtocolCraft
6{
7 class ClientboundContainerClosePacket : public BaseMessage<ClientboundContainerClosePacket>
8 {
9 public:
10 static constexpr std::string_view packet_name = "Container Close";
11
12#if PROTOCOL_VERSION < 768 /* < 1.21.2 */
13 SERIALIZED_FIELD(ContainerId, unsigned char);
14#else
15 SERIALIZED_FIELD(ContainerId, VarInt);
16#endif
17
19 };
20} //ProtocolCraft
#define SERIALIZED_FIELD(Name,...)