LeviLamina
Loading...
Searching...
No Matches
ScriptLeashableComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/scripting/binding_type/ClassBindingBuilder.h"
7#include "mc/deps/scripting/lifetime_registry/StrongTypedObjectHandle.h"
8#include "mc/deps/scripting/runtime/Result.h"
9#include "mc/deps/scripting/runtime/Result_deprecated.h"
10#include "mc/scripting/modules/minecraft/components/ECSScriptActorComponent.h"
11
12// auto generated forward declare list
13// clang-format off
16namespace ScriptModuleMinecraft { class ScriptActor; }
17namespace ScriptModuleMinecraft { class ScriptComponentTypeEnumBuilder; }
18// clang-format on
19
20namespace ScriptModuleMinecraft {
21
23: public ::ScriptModuleMinecraft::ECSScriptActorComponent<::LeashableComponent, ::LeashableDefinition> {
24public:
25 // virtual functions
26 // NOLINTBEGIN
27 // vIndex: 0
28 virtual ~ScriptLeashableComponent() /*override*/ = default;
29 // NOLINTEND
30
31public:
32 // member functions
33 // NOLINTBEGIN
34 MCAPI ::Scripting::Result_deprecated<bool> getCanBeStolen() const;
35
36 MCAPI ::Scripting::Result_deprecated<float> getHardDistance() const;
37
38 MCAPI ::Scripting::Result_deprecated<bool> getIsLeashed() const;
39
40 MCAPI ::Scripting::Result_deprecated<
41 ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActor>>>
42 getLeashHolder() const;
43
44 MCAPI ::Scripting::Result_deprecated<::std::optional<::std::string>> getLeashHolderActorId() const;
45
46 MCAPI ::Scripting::Result_deprecated<float> getMaxDistance() const;
47
48 MCAPI ::Scripting::Result_deprecated<float> getSoftDistance() const;
49
50 MCAPI ::Scripting::Result<void> leashTo(::ScriptModuleMinecraft::ScriptActor& scriptLeashHolder) const;
51
52 MCAPI ::Scripting::Result<void> unleash() const;
53 // NOLINTEND
54
55public:
56 // static functions
57 // NOLINTBEGIN
58 MCAPI static ::Scripting::ClassBindingBuilder<::ScriptModuleMinecraft::ScriptLeashableComponent>
59 bind(::ScriptModuleMinecraft::ScriptComponentTypeEnumBuilder& componentTypeEnumBuilder);
60 // NOLINTEND
61
62public:
63 // static variables
64 // NOLINTBEGIN
65 MCAPI static char const*& ComponentId();
66 // NOLINTEND
67
68public:
69 // destructor thunk
70 // NOLINTBEGIN
71
72 // NOLINTEND
73
74public:
75 // vftables
76 // NOLINTBEGIN
77 MCAPI static void** $vftable();
78 // NOLINTEND
79};
80
81} // namespace ScriptModuleMinecraft
Definition LeashableComponent.h:12
Definition LeashableDefinition.h:13
Definition ECSScriptActorComponent.h:8
Definition ScriptActor.h:58
Definition ScriptComponentTypeEnumBuilder.h:16
Definition ScriptLeashableComponent.h:23