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
17class ScriptBlockTypes {
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 ScriptBlockTypes();
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 // NOLINTEND
61
62public:
63 // static functions
64 // NOLINTBEGIN
65 MCAPI static ::Scripting::ClassBinding bind();
66
67 MCAPI static ::Scripting::ClassBinding bind_V010();
68 // NOLINTEND
69
70public:
71 // constructor thunks
72 // NOLINTBEGIN
73 MCAPI void* $ctor();
74 // NOLINTEND
75};
76
77} // namespace ScriptModuleMinecraft
Definition ScriptBlockType.h:20
Definition StrongTypedObjectHandle.h:8
Definition WeakLifetimeScope.h:7
Definition ClassBinding.h:19