LeviLamina
Loading...
Searching...
No Matches
CreativeContentPacket.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/NonOwnerPointer.h"
7#include "mc/network/MinecraftPacketIds.h"
8#include "mc/network/Packet.h"
9#include "mc/platform/Result.h"
10#include "mc/world/inventory/network/TypedServerNetId.h"
11#include "mc/world/item/CreativeItemCategory.h"
12#include "mc/world/item/NetworkItemInstanceDescriptor.h"
13
14// auto generated forward declare list
15// clang-format off
16class BinaryStream;
20// clang-format on
21
22class CreativeContentPacket : public ::Packet {
23public:
24 // CreativeContentPacket inner types declare
25 // clang-format off
28 // clang-format on
29
30 // CreativeContentPacket inner types define
31 struct CreativeGroupInfoDescription {
32 public:
33 // member variables
34 // NOLINTBEGIN
35 ::ll::TypedStorage<4, 4, ::CreativeItemCategory const> mCreativeItemCategory;
36 ::ll::TypedStorage<8, 32, ::std::string const> mName;
37 ::ll::TypedStorage<8, 64, ::NetworkItemInstanceDescriptor const> mIcon;
38 // NOLINTEND
39
40#ifdef LL_PLAT_S
41#else // LL_PLAT_C
42 public:
43 // prevent constructor by default
44 CreativeGroupInfoDescription();
45
46#endif
47 public:
48 // member functions
49 // NOLINTBEGIN
50#ifdef LL_PLAT_C
51 MCAPI CreativeGroupInfoDescription(
52 ::CreativeItemCategory creativeItemCategory,
53 ::std::string name,
55 );
56
57 MCAPI ~CreativeGroupInfoDescription();
58#endif
59 // NOLINTEND
60
61 public:
62 // constructor thunks
63 // NOLINTBEGIN
64#ifdef LL_PLAT_C
65 MCAPI void* $ctor(
66 ::CreativeItemCategory creativeItemCategory,
67 ::std::string name,
69 );
70#endif
71 // NOLINTEND
72
73 public:
74 // destructor thunk
75 // NOLINTBEGIN
76#ifdef LL_PLAT_C
77 MCAPI void $dtor();
78#endif
79 // NOLINTEND
80 };
81
82 struct CreativeItemEntryDescription {
83 public:
84 // member variables
85 // NOLINTBEGIN
86 ::ll::TypedStorage<4, 4, ::CreativeItemNetId const> mCreativeItemNetId;
87 ::ll::TypedStorage<8, 64, ::NetworkItemInstanceDescriptor const> mItemDescriptor;
88 ::ll::TypedStorage<4, 4, uint const> mIndex;
89 ::ll::TypedStorage<4, 4, uint const> mGroupIndex;
90 // NOLINTEND
91
92#ifdef LL_PLAT_S
93#else // LL_PLAT_C
94 public:
95 // prevent constructor by default
96 CreativeItemEntryDescription& operator=(CreativeItemEntryDescription const&);
97 CreativeItemEntryDescription(CreativeItemEntryDescription const&);
98 CreativeItemEntryDescription();
99
100#endif
101 public:
102 // member functions
103 // NOLINTBEGIN
104#ifdef LL_PLAT_C
105 MCAPI CreativeItemEntryDescription(::CreativeContentPacket::CreativeItemEntryDescription&&);
106
107 MCAPI ~CreativeItemEntryDescription();
108#endif
109 // NOLINTEND
110
111 public:
112 // constructor thunks
113 // NOLINTBEGIN
114#ifdef LL_PLAT_C
116#endif
117 // NOLINTEND
118
119 public:
120 // destructor thunk
121 // NOLINTBEGIN
122#ifdef LL_PLAT_C
123 MCAPI void $dtor();
124#endif
125 // NOLINTEND
126 };
127
128public:
129 // member variables
130 // NOLINTBEGIN
131 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::CreativeItemRegistry const> const>
132 mCreativeItemRegistryForWrite;
133 ::ll::TypedStorage<8, 24, ::std::vector<::CreativeContentPacket::CreativeGroupInfoDescription>>
134 mReadGroupInfoDescriptions;
135 ::ll::TypedStorage<8, 24, ::std::vector<::CreativeContentPacket::CreativeItemEntryDescription>>
136 mReadEntryDescriptions;
137 // NOLINTEND
138
139public:
140 // virtual functions
141 // NOLINTBEGIN
142 virtual ::MinecraftPacketIds getId() const /*override*/;
143
144 virtual ::std::string_view getName() const /*override*/;
145
146 virtual void write(::BinaryStream& stream) const /*override*/;
147
148 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
149
150 virtual ~CreativeContentPacket() /*override*/;
151 // NOLINTEND
152
153public:
154 // destructor thunk
155 // NOLINTBEGIN
156 MCAPI void $dtor();
157 // NOLINTEND
158
159public:
160 // virtual function thunks
161 // NOLINTBEGIN
162 MCAPI ::MinecraftPacketIds $getId() const;
163
164 MCAPI ::std::string_view $getName() const;
165
166 MCAPI void $write(::BinaryStream& stream) const;
167
168 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
169
170
171 // NOLINTEND
172
173public:
174 // vftables
175 // NOLINTBEGIN
176 MCNAPI static void** $vftable();
177 // NOLINTEND
178};
Definition BinaryStream.h:11
Definition CreativeContentPacket.h:22
static MCAPI void ** $vftable()
Definition CreativeItemRegistry.h:24
Definition NetworkItemInstanceDescriptor.h:16
Definition ReadOnlyBinaryStream.h:8
STL namespace.
Definition CreativeContentPacket.h:31
Definition CreativeContentPacket.h:82
Definition CreativeItemNetIdTag.h:5