Botcraft 26.2
Loading...
Searching...
No Matches
DataComponentTypeItemContainerContents.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION > 765 /* > 1.20.4 */
2#pragma once
4#if PROTOCOL_VERSION < 775 /* < 26.1 */
6#else
8
9#include <optional>
10#endif
11
12namespace ProtocolCraft
13{
14 namespace Components
15 {
17 {
18#if PROTOCOL_VERSION < 775 /* < 26.1 */
19 SERIALIZED_FIELD(Items, std::vector<Slot>);
20#else
21 SERIALIZED_FIELD(Items, std::vector<std::optional<ItemStackTemplate>>);
22#endif
23
25 };
26 }
27}
28#endif
#define SERIALIZED_FIELD(Name,...)
SERIALIZED_FIELD(Items, std::vector< std::optional< ItemStackTemplate > >)