LeviLamina
Loading...
Searching...
No Matches
ScriptBlockStateType.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
8// auto generated forward declare list
9// clang-format off
10class BlockState;
11namespace Scripting { class WeakLifetimeScope; }
12namespace Scripting { struct ClassBinding; }
13// clang-format on
14
15namespace ScriptModuleMinecraft {
16
18public:
19 // ScriptBlockStateType inner types declare
20 // clang-format off
21 struct Key;
22 // clang-format on
23
24 // ScriptBlockStateType inner types define
25 struct Key {
26 public:
27 // member variables
28 // NOLINTBEGIN
29 ::ll::TypedStorage<8, 8, ::gsl::not_null<::BlockState const*> const> blockState;
30 // NOLINTEND
31 };
32
33 using BlockStateType = ::std::variant<int, ::std::string, bool>;
34
35public:
36 // member variables
37 // NOLINTBEGIN
38 ::ll::TypedStorage<8, 32, ::std::string const> mName;
39 ::ll::TypedStorage<8, 8, ::gsl::not_null<::BlockState const*> const> mBlockState;
40 ::ll::TypedStorage<8, 24, ::std::vector<::std::variant<int, ::std::string, bool>>> mValidValues;
41 // NOLINTEND
42
43public:
44 // member functions
45 // NOLINTBEGIN
46 MCAPI void _fillValidValues();
47 // NOLINTEND
48
49public:
50 // static functions
51 // NOLINTBEGIN
52 MCAPI static ::Scripting::ClassBinding bind();
53
54 MCAPI static ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptBlockStateType>
55 getOrCreateHandle(::Scripting::WeakLifetimeScope const& scope, ::BlockState const& blockState);
56 // NOLINTEND
57};
58
59} // namespace ScriptModuleMinecraft
Definition BlockState.h:13
Definition ScriptBlockStateType.h:17
Definition WeakLifetimeScope.h:7
Definition ScriptBlockStateType.h:25
Definition ClassBinding.h:19