Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
Registry.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/poi/TypeId.h"
7
8// auto generated forward declare list
9// clang-format off
10class Block;
11namespace Poi { class TagProvider; }
12// clang-format on
13
14namespace Poi {
15
16struct Registry {
17public:
18 // member variables
19 // NOLINTBEGIN
23 // NOLINTEND
24
25public:
26 // prevent constructor by default
27 Registry& operator=(Registry const&);
28 Registry(Registry const&);
29 Registry();
30
31public:
32 // member functions
33 // NOLINTBEGIN
34 MCNAPI ::Poi::TypeId find(::std::string_view name) const;
35
36#ifdef LL_PLAT_C
37 MCNAPI ::Poi::TypeId push(
38 ::std::string_view id,
39 ::std::unordered_set<::Block const*> blocks,
40 uchar maxTickets,
41 uchar usableRange,
42 ::Poi::TagProvider const& tagProvider
43 );
44
45 MCNAPI void reserveId(::std::string id, ::Poi::TypeId token, ::Poi::TagProvider const& tagProvider);
46#endif
47 // NOLINTEND
48};
49
50} // namespace Poi
Definition Block.h:42
Definition TagProvider.h:7
MCAPI::Poi::TypeId find(::std::string_view name) const
Definition Alias.h:14