Botcraft 1.21.4
Loading...
Searching...
No Matches
ClientboundContainerSetContentPacket.hpp
Go to the documentation of this file.
1#pragma once
2
5
6namespace ProtocolCraft
7{
8 class ClientboundContainerSetContentPacket : public BaseMessage<ClientboundContainerSetContentPacket>
9 {
10 public:
11 static constexpr std::string_view packet_name = "Container Set Content";
12
13#if PROTOCOL_VERSION < 768 /* < 1.21.2 */
14 SERIALIZED_FIELD(ContainerId, unsigned char);
15#else
16 SERIALIZED_FIELD(ContainerId, VarInt);
17#endif
18#if PROTOCOL_VERSION < 756 /* < 1.17.1 */
20#else
22 SERIALIZED_FIELD(Items, std::vector<Slot>);
23 SERIALIZED_FIELD(CarriedItem, Slot);
24#endif
25
27 };
28} //ProtocolCraft
#define SERIALIZED_FIELD(Name,...)