LeviLamina
Loading...
Searching...
No Matches
CreativeItemRegistry.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
7#include "mc/deps/shared_types/item/CreativeItemCategory.h"
8#include "mc/platform/brstd/flat_map.h"
9#include "mc/platform/brstd/function_ref.h"
10#include "mc/world/inventory/network/TypedServerNetId.h"
11
12// auto generated forward declare list
13// clang-format off
14class BlockPalette;
19class ItemInstance;
21// clang-format on
22
24public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<8, 24, ::std::vector<::CreativeItemEntry>> mCreativeItems;
28 ::ll::TypedStorage<8, 24, ::std::vector<::CreativeGroupInfo>> mCreativeGroups;
29 ::ll::TypedStorage<8, 64, ::std::unordered_map<::SharedTypes::CreativeItemCategory, ::CreativeItemGroupCategory>>
30 mCreativeGroupCategories;
31 ::ll::TypedStorage<8, 64, ::std::unordered_map<::CreativeItemNetId, uint64>> mCreativeNetIdIndex;
32 // NOLINTEND
33
34public:
35 // virtual functions
36 // NOLINTBEGIN
37#ifdef LL_PLAT_S
38 virtual ~CreativeItemRegistry() /*override*/;
39#else // LL_PLAT_C
40 virtual ~CreativeItemRegistry() /*override*/ = default;
41#endif
42
43 // NOLINTEND
44
45public:
46 // member functions
47 // NOLINTBEGIN
48#ifdef LL_PLAT_C
50#endif
51
52 MCAPI ::brstd::flat_map<
53 ::SharedTypes::CreativeItemCategory,
54 ::gsl::not_null<::CreativeItemGroupCategory*>,
55 ::std::less<::SharedTypes::CreativeItemCategory>,
56 ::std::vector<::SharedTypes::CreativeItemCategory>,
57 ::std::vector<::gsl::not_null<::CreativeItemGroupCategory*>>> createCategories();
58
59#ifdef LL_PLAT_S
60 MCAPI void forEachCreativeItemInstance(::brstd::function_ref<bool(::ItemInstance const&)> func) const;
61#endif
62
63#ifdef LL_PLAT_C
64 MCAPI void initializeFromCreativeContentPacket(
65 ::CreativeContentPacket const& creativeContentPacket,
66 ::BlockPalette const& blockPalette
67 );
68
69 MCAPI ::CreativeItemEntry* newItemEntry(::CreativeItemNetId const& creativeNetId, ::ItemInstance const& item);
70
71 MCAPI void updateNetIdMap();
72#endif
73 // NOLINTEND
74
75public:
76 // constructor thunks
77 // NOLINTBEGIN
78#ifdef LL_PLAT_C
79 MCAPI void* $ctor();
80#endif
81 // NOLINTEND
82
83public:
84 // destructor thunk
85 // NOLINTBEGIN
86#ifdef LL_PLAT_S
87 MCAPI void $dtor();
88#endif
89 // NOLINTEND
90
91public:
92 // vftables
93 // NOLINTBEGIN
94 MCNAPI static void** $vftable();
95 // NOLINTEND
96};
Definition EnableNonOwnerReferences.h:7
Definition BlockPalette.h:18
Definition CreativeContentPacket.h:19
Definition CreativeGroupInfo.h:17
Definition CreativeItemEntry.h:16
Definition CreativeItemGroupCategory.h:17
Definition CreativeItemRegistry.h:23
static MCAPI void ** $vftable()
Definition ItemInstance.h:15
Definition function_ref.h:60
Definition CreativeItemNetIdTag.h:5