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 // virtual functions
37 // NOLINTBEGIN
38 virtual ~ScriptBlockInventoryComponent() /*override*/ = default;
39 // NOLINTEND
40
41public:
42 // member functions
43 // NOLINTBEGIN
44 MCAPI ScriptBlockInventoryComponent(::ScriptModuleMinecraft::ScriptBlockInventoryComponent const&);
45
46 MCAPI ::Scripting::Result_deprecated<
47 ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptContainerWrapper>>>
48 getOrCreateContainer();
49
50 MCAPI ::Scripting::Result_deprecated<::std::optional<
52 getOrCreateContainerV010();
53 // NOLINTEND
54
55public:
56 // static functions
57 // NOLINTBEGIN
58 MCAPI static ::Scripting::ClassBinding bind();
59
60 MCAPI static ::std::optional<
62 tryCreate(::BlockSource& region, ::BlockPos position, ::Scripting::WeakLifetimeScope const& scope);
63 // NOLINTEND
64
65public:
66 // static variables
67 // NOLINTBEGIN
68 MCAPI static char const*& ComponentId();
69 // NOLINTEND
70
71public:
72 // constructor thunks
73 // NOLINTBEGIN
75 // NOLINTEND
76
77public:
78 // vftables
79 // NOLINTBEGIN
80 MCNAPI static void** $vftable();
81 // NOLINTEND
82};
83
84} // namespace ScriptModuleMinecraft
Definition BlockPos.h:19
Definition BlockSource.h:71
Definition BaseScriptBlockActorComponent.h:10
Definition ScriptBlockInventoryComponentContainerV010.h:21
Definition ScriptBlockInventoryComponent.h:23
Definition ScriptContainerWrapper.h:24
Definition StrongTypedObjectHandle.h:8
Definition WeakLifetimeScope.h:7
Definition ClassBinding.h:19