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 public:
41 // prevent constructor by default
42 CreativeGroupInfoDescription();
43
44 public:
45 // member functions
46 // NOLINTBEGIN
47 MCAPI_C CreativeGroupInfoDescription(
48 ::CreativeItemCategory creativeItemCategory,
49 ::std::string name,
51 );
52
53 MCAPI_C ~CreativeGroupInfoDescription();
54 // NOLINTEND
55
56 public:
57 // constructor thunks
58 // NOLINTBEGIN
59 MCAPI_C void* $ctor(
60 ::CreativeItemCategory creativeItemCategory,
61 ::std::string name,
63 );
64 // NOLINTEND
65
66 public:
67 // destructor thunk
68 // NOLINTBEGIN
69 MCAPI_C void $dtor();
70 // NOLINTEND
71 };
72
73 struct CreativeItemEntryDescription {
74 public:
75 // member variables
76 // NOLINTBEGIN
77 ::ll::TypedStorage<4, 4, ::CreativeItemNetId const> mCreativeItemNetId;
78 ::ll::TypedStorage<8, 64, ::NetworkItemInstanceDescriptor const> mItemDescriptor;
79 ::ll::TypedStorage<4, 4, uint const> mIndex;
80 ::ll::TypedStorage<4, 4, uint const> mGroupIndex;
81 // NOLINTEND
82
83 public:
84 // prevent constructor by default
85 CreativeItemEntryDescription& operator=(CreativeItemEntryDescription const&);
86 CreativeItemEntryDescription(CreativeItemEntryDescription const&);
87 CreativeItemEntryDescription();
88
89 public:
90 // member functions
91 // NOLINTBEGIN
92 MCAPI_C CreativeItemEntryDescription(::CreativeContentPacket::CreativeItemEntryDescription&&);
93
94 MCAPI_C ~CreativeItemEntryDescription();
95 // NOLINTEND
96
97 public:
98 // constructor thunks
99 // NOLINTBEGIN
101 // NOLINTEND
102
103 public:
104 // destructor thunk
105 // NOLINTBEGIN
106 MCAPI_C void $dtor();
107 // NOLINTEND
108 };
109
110public:
111 // member variables
112 // NOLINTBEGIN
113 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::CreativeItemRegistry const> const>
114 mCreativeItemRegistryForWrite;
115 ::ll::TypedStorage<8, 24, ::std::vector<::CreativeContentPacket::CreativeGroupInfoDescription>>
116 mReadGroupInfoDescriptions;
117 ::ll::TypedStorage<8, 24, ::std::vector<::CreativeContentPacket::CreativeItemEntryDescription>>
118 mReadEntryDescriptions;
119 // NOLINTEND
120
121public:
122 // virtual functions
123 // NOLINTBEGIN
124 virtual ::MinecraftPacketIds getId() const /*override*/;
125
126 virtual ::std::string getName() const /*override*/;
127
128 virtual void write(::BinaryStream& stream) const /*override*/;
129
130 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
131
132 virtual ~CreativeContentPacket() /*override*/;
133 // NOLINTEND
134
135public:
136 // destructor thunk
137 // NOLINTBEGIN
138 MCAPI void $dtor();
139 // NOLINTEND
140
141public:
142 // virtual function thunks
143 // NOLINTBEGIN
144 MCAPI ::MinecraftPacketIds $getId() const;
145
146 MCAPI ::std::string $getName() const;
147
148 MCAPI void $write(::BinaryStream& stream) const;
149
150 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
151
152
153 // NOLINTEND
154
155public:
156 // vftables
157 // NOLINTBEGIN
158 MCNAPI static void** $vftable();
159 // NOLINTEND
160};
Definition BinaryStream.h:11
Definition CreativeContentPacket.h:22
static MCAPI void ** $vftable()
Definition CreativeItemRegistry.h:23
Definition NetworkItemInstanceDescriptor.h:16
Definition ReadOnlyBinaryStream.h:8
STL namespace.
Definition CreativeContentPacket.h:31
Definition CreativeContentPacket.h:73
Definition CreativeItemNetIdTag.h:5