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/runtime/Result_deprecated.h"
8
9// auto generated forward declare list
10// clang-format off
11class BlockLegacy;
12namespace ScriptModuleMinecraft { class ScriptBlockPermutation; }
13namespace Scripting { class WeakLifetimeScope; }
14namespace Scripting { struct ClassBinding; }
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 MCNAPI ::Scripting::Result_deprecated<
60
61 MCNAPI ::BlockLegacy const& getBlock() const;
62
63 MCNAPI ::std::string getId() const;
64 // NOLINTEND
65
66public:
67 // static functions
68 // NOLINTBEGIN
69 MCNAPI static ::Scripting::ClassBinding bind();
70
71 MCNAPI static ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptBlockType>
73
74 MCNAPI static ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptBlockType>>
76 // NOLINTEND
77};
78
79} // namespace ScriptModuleMinecraft
Definition BlockLegacy.h:88
Definition ScriptBlockType.h:19
MCAPI::BlockLegacy const & getBlock() const
MCAPI ::Scripting::Result_deprecated< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptBlockPermutation > > createDefaultBlockPermutationV010() const
MCAPI::std::string getId() const
static MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptBlockType > > tryGetHandle(::Scripting::WeakLifetimeScope const &scope, ::BlockLegacy const &block)
static MCAPI ::Scripting::ClassBinding bind()
static MCAPI ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptBlockType > getOrCreateHandle(::Scripting::WeakLifetimeScope const &scope, ::BlockLegacy const &block)
Definition StrongTypedObjectHandle.h:8
Definition WeakLifetimeScope.h:12
Definition ScriptBlockType.h:27
Definition Alias.h:14