Botcraft 1.21.4
Loading...
Searching...
No Matches
ClientboundContainerSetDataPacket.hpp
Go to the documentation of this file.
1#pragma once
2
4
5namespace ProtocolCraft
6{
7 class ClientboundContainerSetDataPacket : public BaseMessage<ClientboundContainerSetDataPacket>
8 {
9 public:
10 static constexpr std::string_view packet_name = "Container Set Data";
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 SERIALIZED_FIELD(Id_, short);
18 SERIALIZED_FIELD(Value, short);
19
21 };
22} //ProtocolCraft
#define SERIALIZED_FIELD(Name,...)