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
42
43 MCNAPI ::brstd::flat_map<
44 ::CreativeItemCategory,
45 ::gsl::not_null<::CreativeItemGroupCategory*>,
46 ::std::less<::CreativeItemCategory>,
47 ::std::vector<::CreativeItemCategory>,
48 ::std::vector<::gsl::not_null<::CreativeItemGroupCategory*>>>
50
51 MCNAPI void forEachCreativeItemInstance(::std::function<bool(::ItemInstance const&)> func) const;
52
53 MCNAPI ::CreativeItemGroupCategory* newCreativeCategory(::std::string const& name, ::CreativeItemCategory category);
54
55 MCNAPI void updateNetIdMap();
56 // NOLINTEND
57
58public:
59 // constructor thunks
60 // NOLINTBEGIN
61 MCNAPI void* $ctor();
62 // NOLINTEND
63
64public:
65 // destructor thunk
66 // NOLINTBEGIN
67 MCNAPI void $dtor();
68 // NOLINTEND
69
70public:
71 // vftables
72 // NOLINTBEGIN
73 MCNAPI static void** $vftable();
74 // NOLINTEND
75};
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 void * $ctor()
MCAPI ::brstd::flat_map< ::CreativeItemCategory, ::gsl::not_null<::CreativeItemGroupCategory * >, ::std::less<::CreativeItemCategory >, ::std::vector<::CreativeItemCategory >, ::std::vector<::gsl::not_null<::CreativeItemGroupCategory * > > > createCategories()
MCAPI CreativeItemRegistry()
MCAPI void forEachCreativeItemInstance(::std::function< bool(::ItemInstance const &)> func) const
MCAPI void updateNetIdMap()
Definition ItemInstance.h:16
Definition CreativeItemNetIdTag.h:5