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 MCAPI explicit ScopedItemRegistry(::ItemRegistryRef registryRef);
39
40 MCAPI void _reset();
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 MCAPI void* $ctor(::ItemRegistryRef registryRef);
53 // NOLINTEND
54
55 public:
56 // destructor thunk
57 // NOLINTBEGIN
58 MCAPI void $dtor();
59 // NOLINTEND
60 };
61
62public:
63 // static functions
64 // NOLINTBEGIN
65 MCAPI static ::ItemRegistryRef getItemRegistry();
66 // NOLINTEND
67
68public:
69 // static variables
70 // NOLINTBEGIN
71 MCAPI static ::std::weak_ptr<::ItemRegistry>& mThreadLocalRegistry();
72 // NOLINTEND
73};
Definition ItemRegistryManager.h:21
Definition ItemRegistryManager.h:13
Definition ItemRegistryRef.h:42
Definition ItemRegistry.h:46