LeviLamina
Loading...
Searching...
No Matches
ItemRegistryManager.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/item/registry/ItemRegistryRef.h"
7
8// auto generated forward declare list
9// clang-format off
10class ItemRegistry;
11// clang-format on
12
14public:
15 // ItemRegistryManager inner types declare
16 // clang-format off
18 // clang-format on
19
20 // ItemRegistryManager inner types define
21 class ScopedItemRegistry {
22 public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<1, 1, bool> mIsSet;
26 ::ll::TypedStorage<8, 16, ::ItemRegistryRef> mPreviousRegistry;
27 // NOLINTEND
28
29 public:
30 // prevent constructor by default
31 ScopedItemRegistry();
32
33 public:
34 // member functions
35 // NOLINTBEGIN
36 MCAPI explicit ScopedItemRegistry(::std::weak_ptr<::ItemRegistry> registry);
37
38#ifdef LL_PLAT_C
39 MCAPI explicit ScopedItemRegistry(::ItemRegistryRef registryRef);
40#endif
41
42 MCAPI void construct(::ItemRegistryRef registryRef);
43
44 MCAPI ~ScopedItemRegistry();
45 // NOLINTEND
46
47 public:
48 // constructor thunks
49 // NOLINTBEGIN
50 MCAPI void* $ctor(::std::weak_ptr<::ItemRegistry> registry);
51
52#ifdef LL_PLAT_C
53 MCAPI void* $ctor(::ItemRegistryRef registryRef);
54#endif
55 // NOLINTEND
56
57 public:
58 // destructor thunk
59 // NOLINTBEGIN
60 MCAPI void $dtor();
61 // NOLINTEND
62 };
63
64public:
65 // static functions
66 // NOLINTBEGIN
67 MCAPI static ::ItemRegistryRef getItemRegistry();
68 // NOLINTEND
69
70public:
71 // static variables
72 // NOLINTBEGIN
73 MCAPI static ::std::weak_ptr<::ItemRegistry>& mThreadLocalRegistry();
74 // NOLINTEND
75};
Definition ItemRegistryManager.h:21
Definition ItemRegistryManager.h:13
Definition ItemRegistryRef.h:36
Definition ItemRegistry.h:44