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/deps/shared_types/item/CreativeItemCategory.h"
8#include "mc/network/MinecraftPacketIds.h"
9#include "mc/network/Packet.h"
10#include "mc/platform/Result.h"
11#include "mc/world/inventory/network/TypedServerNetId.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, ::SharedTypes::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& operator=(CreativeGroupInfoDescription const&);
45 CreativeGroupInfoDescription();
46
47#endif
48 public:
49 // member functions
50 // NOLINTBEGIN
51#ifdef LL_PLAT_C
52 MCAPI CreativeGroupInfoDescription(::CreativeContentPacket::CreativeGroupInfoDescription&&);
53
54 MCAPI CreativeGroupInfoDescription(::CreativeContentPacket::CreativeGroupInfoDescription const&);
55
56 MCAPI CreativeGroupInfoDescription(
57 ::SharedTypes::CreativeItemCategory creativeItemCategory,
58 ::std::string name,
60 );
61#endif
62
63 MCAPI ~CreativeGroupInfoDescription();
64 // NOLINTEND
65
66 public:
67 // constructor thunks
68 // NOLINTBEGIN
69#ifdef LL_PLAT_C
71
73
74 MCAPI void* $ctor(
75 ::SharedTypes::CreativeItemCategory creativeItemCategory,
76 ::std::string name,
78 );
79#endif
80 // NOLINTEND
81
82 public:
83 // destructor thunk
84 // NOLINTBEGIN
85 MCAPI void $dtor();
86 // NOLINTEND
87 };
88
89 struct CreativeItemEntryDescription {
90 public:
91 // member variables
92 // NOLINTBEGIN
93 ::ll::TypedStorage<4, 4, ::CreativeItemNetId const> mCreativeItemNetId;
94 ::ll::TypedStorage<8, 64, ::NetworkItemInstanceDescriptor const> mItemDescriptor;
95 ::ll::TypedStorage<4, 4, uint const> mIndex;
96 ::ll::TypedStorage<4, 4, uint const> mGroupIndex;
97 // NOLINTEND
98
99#ifdef LL_PLAT_S
100#else // LL_PLAT_C
101 public:
102 // prevent constructor by default
103 CreativeItemEntryDescription& operator=(CreativeItemEntryDescription const&);
104 CreativeItemEntryDescription();
105
106#endif
107 public:
108 // member functions
109 // NOLINTBEGIN
110#ifdef LL_PLAT_C
111 MCAPI CreativeItemEntryDescription(::CreativeContentPacket::CreativeItemEntryDescription&&);
112
113 MCAPI CreativeItemEntryDescription(::CreativeContentPacket::CreativeItemEntryDescription const&);
114
115 MCAPI CreativeItemEntryDescription(
116 ::CreativeItemNetId netId,
117 ::NetworkItemInstanceDescriptor const& itemDescriptor,
118 uint index,
119 uint groupIndex
120 );
121
122 MCAPI ~CreativeItemEntryDescription();
123#endif
124 // NOLINTEND
125
126 public:
127 // constructor thunks
128 // NOLINTBEGIN
129#ifdef LL_PLAT_C
131
133
134 MCAPI void* $ctor(
135 ::CreativeItemNetId netId,
136 ::NetworkItemInstanceDescriptor const& itemDescriptor,
137 uint index,
138 uint groupIndex
139 );
140#endif
141 // NOLINTEND
142
143 public:
144 // destructor thunk
145 // NOLINTBEGIN
146#ifdef LL_PLAT_C
147 MCAPI void $dtor();
148#endif
149 // NOLINTEND
150 };
151
152public:
153 // member variables
154 // NOLINTBEGIN
155 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::CreativeItemRegistry const> const>
156 mCreativeItemRegistryForWrite;
157 ::ll::TypedStorage<8, 24, ::std::vector<::CreativeContentPacket::CreativeGroupInfoDescription>>
158 mReadGroupInfoDescriptions;
159 ::ll::TypedStorage<8, 24, ::std::vector<::CreativeContentPacket::CreativeItemEntryDescription>>
160 mReadEntryDescriptions;
161 // NOLINTEND
162
163public:
164 // virtual functions
165 // NOLINTBEGIN
166 virtual ::MinecraftPacketIds getId() const /*override*/;
167
168 virtual ::std::string_view getName() const /*override*/;
169
170 virtual void write(::BinaryStream& stream) const /*override*/;
171
172 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
173 // NOLINTEND
174
175public:
176 // member functions
177 // NOLINTBEGIN
178 MCAPI CreativeContentPacket();
179
180 MCAPI explicit CreativeContentPacket(
181 ::Bedrock::NonOwnerPointer<::CreativeItemRegistry const> creativeItemRegistryForWrite
182 );
183
184#ifdef LL_PLAT_C
185 MCFOLD ::std::vector<::CreativeContentPacket::CreativeItemEntryDescription> const& getReadEntryDescriptions() const;
186
187 MCFOLD ::std::vector<::CreativeContentPacket::CreativeGroupInfoDescription> const&
188 getReadGroupInfoDescriptions() const;
189#endif
190 // NOLINTEND
191
192public:
193 // constructor thunks
194 // NOLINTBEGIN
195 MCAPI void* $ctor();
196
197 MCAPI void* $ctor(::Bedrock::NonOwnerPointer<::CreativeItemRegistry const> creativeItemRegistryForWrite);
198 // NOLINTEND
199
200public:
201 // virtual function thunks
202 // NOLINTBEGIN
203 MCAPI ::MinecraftPacketIds $getId() const;
204
205 MCAPI ::std::string_view $getName() const;
206
207 MCAPI void $write(::BinaryStream& stream) const;
208
209 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
210
211
212 // NOLINTEND
213
214public:
215 // vftables
216 // NOLINTBEGIN
217 MCNAPI static void** $vftable();
218 // NOLINTEND
219};
Definition NonOwnerPointer.h:9
Definition BinaryStream.h:11
static MCAPI void ** $vftable()
Definition CreativeItemRegistry.h:23
Definition NetworkItemInstanceDescriptor.h:18
Definition ReadOnlyBinaryStream.h:8
STL namespace.
Definition CreativeContentPacket.h:31
Definition CreativeContentPacket.h:89
Definition CreativeItemNetIdTag.h:5