LeviLamina
Loading...
Searching...
No Matches
ScriptBlockInventoryComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/scripting/lifetime_registry/StrongObjectHandle.h"
7#include "mc/deps/scripting/lifetime_registry/StrongTypedObjectHandle.h"
8#include "mc/deps/scripting/runtime/Result_deprecated.h"
9#include "mc/scripting/modules/minecraft/block/components/BaseScriptBlockActorComponent.h"
10
11// auto generated forward declare list
12// clang-format off
13class BlockPos;
14class BlockSource;
15namespace ScriptModuleMinecraft { class ScriptBlockInventoryComponentContainerV010; }
16namespace ScriptModuleMinecraft { class ScriptContainerWrapper; }
17namespace Scripting { class WeakLifetimeScope; }
18namespace Scripting { struct ClassBinding; }
19// clang-format on
20
21namespace ScriptModuleMinecraft {
22
23class ScriptBlockInventoryComponent : public ::ScriptModuleMinecraft::BaseScriptBlockActorComponent {
24public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<8, 40, ::std::optional<::Scripting::StrongObjectHandle>> mScriptContainer;
28 // NOLINTEND
29
30public:
31 // prevent constructor by default
32 ScriptBlockInventoryComponent& operator=(ScriptBlockInventoryComponent const&);
33 ScriptBlockInventoryComponent();
34
35public:
36 // member functions
37 // NOLINTBEGIN
38 MCAPI ScriptBlockInventoryComponent(::ScriptModuleMinecraft::ScriptBlockInventoryComponent const&);
39
40 MCAPI ::Scripting::Result_deprecated<
41 ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptContainerWrapper>>>
42 getOrCreateContainer();
43
44 MCAPI ::Scripting::Result_deprecated<::std::optional<
46 getOrCreateContainerV010();
47 // NOLINTEND
48
49public:
50 // static functions
51 // NOLINTBEGIN
52 MCAPI static ::Scripting::ClassBinding bind();
53
54 MCAPI static ::std::optional<
56 tryCreate(::BlockSource& region, ::BlockPos position, ::Scripting::WeakLifetimeScope const& scope);
57 // NOLINTEND
58
59public:
60 // static variables
61 // NOLINTBEGIN
62 MCAPI static char const*& ComponentId();
63 // NOLINTEND
64
65public:
66 // constructor thunks
67 // NOLINTBEGIN
69 // NOLINTEND
70
71public:
72 // vftables
73 // NOLINTBEGIN
74 MCNAPI static void** $vftable();
75 // NOLINTEND
76};
77
78} // namespace ScriptModuleMinecraft
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition BaseScriptBlockActorComponent.h:10
Definition ScriptBlockInventoryComponentContainerV010.h:21
Definition ScriptBlockInventoryComponent.h:23
Definition ScriptContainerWrapper.h:25
Definition StrongTypedObjectHandle.h:8
Definition WeakLifetimeScope.h:14
Definition ClassBinding.h:19