LeviLamina
Loading...
Searching...
No Matches
ScriptBlockType.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#include "mc/deps/scripting/lifetime_registry/WeakLifetimeScope.h"
8#include "mc/deps/scripting/runtime/Result_deprecated.h"
9
10// auto generated forward declare list
11// clang-format off
12class BlockType;
13class HashedString;
14namespace ScriptModuleMinecraft { class ScriptBlockPermutation; }
15namespace Scripting { struct ClassBinding; }
16// clang-format on
17
18namespace ScriptModuleMinecraft {
19
21public:
22 // ScriptBlockType inner types declare
23 // clang-format off
24 struct Key;
25 // clang-format on
26
27 // ScriptBlockType inner types define
28 struct Key {
29 public:
30 // member variables
31 // NOLINTBEGIN
32 ::ll::TypedStorage<8, 8, ::BlockType const*> mBlockTypePtr;
33 // NOLINTEND
34 };
35
36public:
37 // member variables
38 // NOLINTBEGIN
39 ::ll::TypedStorage<8, 16, ::Scripting::WeakLifetimeScope> mScope;
40 ::ll::TypedStorage<8, 8, ::std::reference_wrapper<::HashedString const>> mBlockName;
41 // NOLINTEND
42
43public:
44 // member functions
45 // NOLINTBEGIN
46 MCAPI ::Scripting::Result_deprecated<
48 createDefaultBlockPermutationV010() const;
49
50 MCAPI ::std::string getId() const;
51 // NOLINTEND
52
53public:
54 // static functions
55 // NOLINTBEGIN
56 MCAPI static ::Scripting::ClassBinding bind();
57
58 MCAPI static ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptBlockType>
59 getOrCreateHandle(::Scripting::WeakLifetimeScope const& scope, ::BlockType const& block);
60
61 MCAPI static ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptBlockType>>
62 tryGetHandle(::Scripting::WeakLifetimeScope const& scope, ::BlockType const& block);
63 // NOLINTEND
64};
65
66} // namespace ScriptModuleMinecraft
Definition BlockType.h:84
Definition HashedString.h:5
Definition ScriptBlockPermutation.h:23
Definition ScriptBlockType.h:20
Definition StrongTypedObjectHandle.h:8
Definition WeakLifetimeScope.h:7
Definition ScriptBlockType.h:28
Definition ClassBinding.h:19