LeviLamina
Loading...
Searching...
No Matches
ScriptBlockTypes.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/scripting/lifetime_registry/StrongTypedObjectHandle.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace ScriptModuleMinecraft { class ScriptBlockType; }
11namespace Scripting { class WeakLifetimeScope; }
12namespace Scripting { struct ClassBinding; }
13// clang-format on
14
15namespace ScriptModuleMinecraft {
16
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<
22 8,
23 64,
24 ::std::unordered_map<
25 ::std::string,
27 mBlocks;
28 ::ll::TypedStorage<
29 8,
30 64,
31 ::std::unordered_map<
32 ::std::string,
34 mBlockAliases;
35 // NOLINTEND
36
37public:
38 // member functions
39 // NOLINTBEGIN
40 MCAPI void _generateAllBlockHandles(::Scripting::WeakLifetimeScope& scope);
41
42 MCAPI void _registerBlockType(
43 ::std::string blockName,
45 );
46
47 MCAPI void _registerBlockTypeAlias(
48 ::std::string blockName,
50 );
51
52 MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptBlockType>>
53 get(::Scripting::WeakLifetimeScope& scope, ::std::string const& blockName);
54
55 MCAPI ::std::vector<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptBlockType>>
56 getAllBlockTypes(::Scripting::WeakLifetimeScope& scope);
57
58 MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptBlockType>>
59 get_V010(::Scripting::WeakLifetimeScope& scope, ::std::string const& blockName);
60
61 MCAPI ~ScriptBlockTypes();
62 // NOLINTEND
63
64public:
65 // static functions
66 // NOLINTBEGIN
67 MCAPI static ::Scripting::ClassBinding bind();
68
69 MCAPI static ::Scripting::ClassBinding bind_V010();
70 // NOLINTEND
71
72public:
73 // destructor thunk
74 // NOLINTBEGIN
75 MCAPI void $dtor();
76 // NOLINTEND
77};
78
79} // namespace ScriptModuleMinecraft
Definition ScriptBlockType.h:20
Definition ScriptBlockTypes.h:17
Definition StrongTypedObjectHandle.h:8
Definition WeakLifetimeScope.h:14
Definition ClassBinding.h:19