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