LeviLamina
Loading...
Searching...
No Matches
ScriptInventoryComponent.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/lifetime_registry/WeakTypedObjectHandle.h"
9#include "mc/deps/scripting/runtime/Result.h"
10#include "mc/deps/scripting/runtime/Result_deprecated.h"
11#include "mc/scripting/modules/minecraft/components/ScriptActorComponent.h"
12
13// auto generated forward declare list
14// clang-format off
15namespace ScriptModuleMinecraft { class ScriptComponentTypeEnumBuilder; }
16namespace ScriptModuleMinecraft { class ScriptContainerWrapper; }
17namespace ScriptModuleMinecraft { class ScriptInventoryComponentContainer; }
18namespace ScriptModuleMinecraft { struct ScriptInvalidActorError; }
19namespace Scripting { struct ClassBinding; }
20// clang-format on
21
22namespace ScriptModuleMinecraft {
23
24class ScriptInventoryComponent : public ::ScriptModuleMinecraft::ScriptActorComponent {
25public:
26 // member variables
27 // NOLINTBEGIN
28 ::ll::TypedStorage<8, 40, ::std::optional<::Scripting::StrongObjectHandle>> mScriptContainer;
29 // NOLINTEND
30
31public:
32 // prevent constructor by default
33 ScriptInventoryComponent& operator=(ScriptInventoryComponent const&);
34 ScriptInventoryComponent();
35
36public:
37 // virtual functions
38 // NOLINTBEGIN
39 virtual bool _isValid() const /*override*/;
40
41 virtual ~ScriptInventoryComponent() /*override*/ = default;
42 // NOLINTEND
43
44public:
45 // member functions
46 // NOLINTBEGIN
47 MCAPI ScriptInventoryComponent(::ScriptModuleMinecraft::ScriptInventoryComponent const&);
48
49 MCAPI ::Scripting::Result_deprecated<int> getAdditionalSlotsPerStrength() const;
50
51 MCAPI ::Scripting::Result_deprecated<bool> getCanBeSiphonedFrom() const;
52
53 MCAPI ::Scripting::Result_deprecated<::std::string> getContainerType() const;
54
55 MCAPI ::Scripting::Result_deprecated<int> getInventorySize() const;
56
57 MCAPI ::Scripting::Result_deprecated<
59 getOrCreateContainerV010();
60
61 MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptContainerWrapper>>
62 getOrCreateContainerV1();
63
64 MCAPI ::Scripting::Result<
67 getOrCreateContainerV2();
68
69 MCAPI ::Scripting::Result_deprecated<bool> getPrivate() const;
70
71 MCAPI ::Scripting::Result_deprecated<bool> getRestrictToOwner() const;
72 // NOLINTEND
73
74public:
75 // static functions
76 // NOLINTBEGIN
77 MCAPI static ::Scripting::ClassBinding
78 bind(::ScriptModuleMinecraft::ScriptComponentTypeEnumBuilder& componentTypeEnumBuilder);
79 // NOLINTEND
80
81public:
82 // static variables
83 // NOLINTBEGIN
84 MCAPI static char const*& ComponentId();
85 // NOLINTEND
86
87public:
88 // constructor thunks
89 // NOLINTBEGIN
91 // NOLINTEND
92
93public:
94 // virtual function thunks
95 // NOLINTBEGIN
96 MCAPI bool $_isValid() const;
97
98
99 // NOLINTEND
100
101public:
102 // vftables
103 // NOLINTBEGIN
104 MCNAPI static void** $vftable();
105 // NOLINTEND
106};
107
108} // namespace ScriptModuleMinecraft
Definition ScriptActorComponent.h:22
Definition ScriptComponentTypeEnumBuilder.h:17
Definition ScriptContainerWrapper.h:24
Definition ScriptInventoryComponentContainer.h:19
Definition ScriptInventoryComponent.h:24
Definition StrongTypedObjectHandle.h:8
Definition WeakTypedObjectHandle.h:8
Definition ScriptInvalidActorError.h:17
Definition ClassBinding.h:19