Botcraft 1.21.4
Loading...
Searching...
No Matches
ClientboundContainerSetSlotPacket.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
7
8namespace ProtocolCraft
9{
10 class ClientboundContainerSetSlotPacket : public BaseMessage<ClientboundContainerSetSlotPacket>
11 {
12 public:
13 static constexpr std::string_view packet_name = "Container Set Slot";
14
15#if PROTOCOL_VERSION < 768 /* < 1.21.2 */
16 SERIALIZED_FIELD(ContainerId, char);
17#else
18 SERIALIZED_FIELD(ContainerId, VarInt);
19#endif
20#if PROTOCOL_VERSION > 755 /* > 1.17 */
22#endif
25
27 };
28} //ProtocolCraft
#define SERIALIZED_FIELD(Name,...)
SERIALIZED_FIELD(ItemStack, ProtocolCraft::Slot)