Skip to content
LeviMC
English
AutoLightDark
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 MCNAPI void _reset();
39
40 MCNAPI void construct(::ItemRegistryRef registryRef);
41
42 MCAPI ~ScopedItemRegistry();
43 // NOLINTEND
44
45 public:
46 // static functions
47 // NOLINTBEGIN
48 MCNAPI static ::std::shared_ptr<void> create(::ItemRegistryRef registryRef);
49 // NOLINTEND
50
51 public:
52 // constructor thunks
53 // NOLINTBEGIN
54 MCAPI void* $ctor(::std::weak_ptr<::ItemRegistry> registry);
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 MCNAPI static ::std::weak_ptr<::ItemRegistry>& mThreadLocalRegistry();
74 // NOLINTEND
75};
Definition ItemRegistryManager.h:21
static MCAPI ::std::shared_ptr< void > create(::ItemRegistryRef registryRef)
MCAPI void construct(::ItemRegistryRef registryRef)
Definition ItemRegistryManager.h:13
static MCAPI ::std::weak_ptr<::ItemRegistry > & mThreadLocalRegistry()
Definition ItemRegistryRef.h:36
Definition ItemRegistry.h:43