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