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/platform/brstd/flat_map.h"
8#include "mc/world/inventory/network/TypedServerNetId.h"
9#include "mc/world/item/CreativeItemCategory.h"
10
11// auto generated forward declare list
12// clang-format off
16class HashedString;
17class ItemInstance;
19// clang-format on
20
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<8, 24, ::std::vector<::CreativeItemEntry>> mCreativeItems;
26 ::ll::TypedStorage<8, 24, ::std::vector<::CreativeGroupInfo>> mCreativeGroups;
27 ::ll::TypedStorage<8, 64, ::std::unordered_map<::CreativeItemCategory, ::CreativeItemGroupCategory>>
28 mCreativeGroupCategories;
29 ::ll::TypedStorage<8, 64, ::std::unordered_map<::CreativeItemNetId, uint64>> mCreativeNetIdIndex;
30 // NOLINTEND
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 // vIndex: 0
36 virtual ~CreativeItemRegistry() /*override*/;
37 // NOLINTEND
38
39public:
40 // member functions
41 // NOLINTBEGIN
42 MCAPI ::brstd::flat_map<
43 ::CreativeItemCategory,
44 ::gsl::not_null<::CreativeItemGroupCategory*>,
45 ::std::less<::CreativeItemCategory>,
46 ::std::vector<::CreativeItemCategory>,
47 ::std::vector<::gsl::not_null<::CreativeItemGroupCategory*>>>
48 createCategories();
49
50 MCAPI void forEachCreativeItemInstance(::std::function<bool(::ItemInstance const&)> func) const;
51
52 MCAPI ::CreativeItemGroupCategory* newCreativeCategory(::std::string const& name, ::CreativeItemCategory category);
53
54 MCAPI ::CreativeGroupInfo*
55 newCreativeGroup(::CreativeItemCategory category, ::HashedString const& name, ::ItemInstance const& icon);
56
57 MCAPI void updateNetIdMap();
58 // NOLINTEND
59
60public:
61 // destructor thunk
62 // NOLINTBEGIN
63 MCAPI void $dtor();
64 // NOLINTEND
65
66public:
67 // vftables
68 // NOLINTBEGIN
69 MCNAPI static void** $vftable();
70 // NOLINTEND
71};
Definition EnableNonOwnerReferences.h:7
Definition CreativeGroupInfo.h:17
Definition CreativeItemEntry.h:16
Definition CreativeItemGroupCategory.h:17
Definition CreativeItemRegistry.h:21
static MCAPI void ** $vftable()
Definition HashedString.h:5
Definition ItemInstance.h:15
Definition CreativeItemNetIdTag.h:5