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/script_core/lifetime_registry/scripting/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 _registerBlockTypeAlias(
43 ::std::string blockName,
45 );
46
47 MCAPI ::std::vector<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptBlockType>>
48 getAllBlockTypes(::Scripting::WeakLifetimeScope& scope);
49
50 MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptBlockType>>
51 get_V010(::Scripting::WeakLifetimeScope& scope, ::std::string const& blockName);
52 // NOLINTEND
53
54public:
55 // static functions
56 // NOLINTBEGIN
57 MCAPI static ::Scripting::ClassBinding bind();
58
59 MCAPI static ::Scripting::ClassBinding bind_V010();
60 // NOLINTEND
61};
62
63} // namespace ScriptModuleMinecraft
Definition ScriptBlockType.h:18
Definition ScriptBlockTypes.h:17
Definition StrongTypedObjectHandle.h:8
Definition WeakLifetimeScope.h:12
Definition ClassBinding.h:10