Botcraft 26.2
Loading...
Searching...
No Matches
ServerboundSetCreativeModeSlotPacket.hpp
Go to the documentation of this file.
1#pragma once
2
5
6namespace ProtocolCraft
7{
8 class ServerboundSetCreativeModeSlotPacket : public BasePacket<ServerboundSetCreativeModeSlotPacket>
9 {
10 public:
11 static constexpr std::string_view packet_name = "Set Creative Mode Slot";
12
13 SERIALIZED_FIELD(SlotNum, short);
14#if PROTOCOL_VERSION < 770 /* < 1.21.5 */
16#else
18#endif
19
21 };
22} //ProtocolCraft
#define SERIALIZED_FIELD(Name,...)
SERIALIZED_FIELD(ItemStack, Internal::DiffType< Slot, UntrustedItemStack >)
Just a simple type wrapper that will store with T1 and serialize as T2 (can be used for Enum/VarInt f...
Definition Templates.hpp:72