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
43#ifdef LL_PLAT_S
44public:
45 // prevent constructor by default
46 ScriptBlockType& operator=(ScriptBlockType const&);
48
49#else // LL_PLAT_C
50#endif
51public:
52 // member functions
53 // NOLINTBEGIN
54#ifdef LL_PLAT_S
56#endif
57
58 MCAPI ::Scripting::Result_deprecated<
60 createDefaultBlockPermutationV010() const;
61
62 MCAPI ::BlockType const& getBlock() const;
63
64 MCAPI ::std::string getId() const;
65
66#ifdef LL_PLAT_S
67 MCAPI ::ScriptModuleMinecraft::ScriptBlockType& operator=(::ScriptModuleMinecraft::ScriptBlockType&& rhs);
68
69 MCAPI ~ScriptBlockType();
70#endif
71 // NOLINTEND
72
73public:
74 // static functions
75 // NOLINTBEGIN
76 MCAPI static ::Scripting::ClassBinding bind();
77
78 MCAPI static ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptBlockType>
79 getOrCreateHandle(::Scripting::WeakLifetimeScope const& scope, ::BlockType const& block);
80 // NOLINTEND
81
82public:
83 // constructor thunks
84 // NOLINTBEGIN
85#ifdef LL_PLAT_S
86 MCAPI void* $ctor(::ScriptModuleMinecraft::ScriptBlockType const&);
87#endif
88 // NOLINTEND
89
90public:
91 // destructor thunk
92 // NOLINTBEGIN
93#ifdef LL_PLAT_S
94 MCFOLD void $dtor();
95#endif
96 // NOLINTEND
97};
98
99} // namespace ScriptModuleMinecraft
Definition BlockType.h:84
Definition HashedString.h:5
Definition ScriptBlockPermutation.h:24
Definition ScriptBlockType.h:20
Definition StrongTypedObjectHandle.h:8
Definition WeakLifetimeScope.h:14
Definition ScriptBlockType.h:28
Definition ClassBinding.h:19