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/binding_type/ClassBindingBuilder.h"
7#include "mc/deps/scripting/lifetime_registry/StrongTypedObjectHandle.h"
8#include "mc/deps/scripting/runtime/Result_deprecated.h"
9
10// auto generated forward declare list
11// clang-format off
12class BlockLegacy;
13namespace ScriptModuleMinecraft { class ScriptBlockPermutation; }
14namespace Scripting { class WeakLifetimeScope; }
15// clang-format on
16
17namespace ScriptModuleMinecraft {
18
20public:
21 // ScriptBlockType inner types declare
22 // clang-format off
23 struct Key;
24 // clang-format on
25
26 // ScriptBlockType inner types define
27 struct Key {
28 public:
29 // member variables
30 // NOLINTBEGIN
32 // NOLINTEND
33
34 public:
35 // prevent constructor by default
36 Key& operator=(Key const&);
37 Key(Key const&);
38 Key();
39 };
40
41public:
42 // member variables
43 // NOLINTBEGIN
46 // NOLINTEND
47
48public:
49 // prevent constructor by default
50 ScriptBlockType& operator=(ScriptBlockType const&);
53
54public:
55 // member functions
56 // NOLINTBEGIN
57 MCAPI ::Scripting::Result_deprecated<
59 createDefaultBlockPermutationV010() const;
60
61 MCAPI ::BlockLegacy const& getBlock() const;
62
63 MCAPI ::std::string getId() const;
64 // NOLINTEND
65
66public:
67 // static functions
68 // NOLINTBEGIN
69 MCAPI static ::Scripting::ClassBindingBuilder<::ScriptModuleMinecraft::ScriptBlockType> bind();
70
71 MCAPI static ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptBlockType>
72 getOrCreateHandle(::Scripting::WeakLifetimeScope const& scope, ::BlockLegacy const& block);
73
74 MCAPI static ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptBlockType>>
75 tryGetHandle(::Scripting::WeakLifetimeScope const& scope, ::BlockLegacy const& block);
76 // NOLINTEND
77};
78
79} // namespace ScriptModuleMinecraft
Definition BlockLegacy.h:88
Definition ScriptBlockType.h:19
Definition StrongTypedObjectHandle.h:8
Definition WeakLifetimeScope.h:12
Definition ScriptBlockType.h:27
Definition Alias.h:14