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/lifetime_registry/StrongTypedObjectHandle.h"
7#include "mc/deps/scripting/runtime/Result_deprecated.h"
8#include "mc/scripting/modules/minecraft/components/ECSScriptActorComponent.h"
9
10// auto generated forward declare list
11// clang-format off
14namespace ScriptModuleMinecraft { class ScriptActor; }
15namespace ScriptModuleMinecraft { class ScriptComponentTypeEnumBuilder; }
16namespace Scripting { struct ClassBinding; }
17// clang-format on
18
19namespace ScriptModuleMinecraft {
20
22: public ::ScriptModuleMinecraft::ECSScriptActorComponent<::LeashableComponent, ::LeashableDefinition> {
23public:
24 // virtual functions
25 // NOLINTBEGIN
26 // vIndex: 0
27 virtual ~ScriptLeashableComponent() /*override*/ = default;
28 // NOLINTEND
29
30public:
31 // member functions
32 // NOLINTBEGIN
33 MCNAPI ::Scripting::Result_deprecated<bool> getCanBeStolen() const;
34
35 MCNAPI ::Scripting::Result_deprecated<float> getHardDistance() const;
36
37 MCNAPI ::Scripting::Result_deprecated<bool> getIsLeashed() const;
38
39 MCNAPI ::Scripting::Result_deprecated<
40 ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActor>>>
42
43 MCNAPI ::Scripting::Result_deprecated<::std::optional<::std::string>> getLeashHolderActorId() const;
44
45 MCNAPI ::Scripting::Result_deprecated<float> getMaxDistance() const;
46
47 MCNAPI ::Scripting::Result_deprecated<float> getSoftDistance() const;
48
49 MCNAPI ::Scripting::Result_deprecated<void> leashTo(::ScriptModuleMinecraft::ScriptActor& scriptLeashHolder) const;
50
51 MCNAPI ::Scripting::Result_deprecated<void> unleash() const;
52 // NOLINTEND
53
54public:
55 // static functions
56 // NOLINTBEGIN
57 MCNAPI static ::Scripting::ClassBinding
59 // NOLINTEND
60
61public:
62 // static variables
63 // NOLINTBEGIN
64 MCNAPI static char const*& ComponentId();
65 // NOLINTEND
66
67public:
68 // vftables
69 // NOLINTBEGIN
70 MCNAPI static void** $vftable();
71 // NOLINTEND
72};
73
74} // namespace ScriptModuleMinecraft
Definition LeashableComponent.h:15
Definition LeashableDefinition.h:13
Definition ECSScriptActorComponent.h:8
Definition ScriptActor.h:59
Definition ScriptComponentTypeEnumBuilder.h:16
Definition ScriptLeashableComponent.h:22
MCAPI ::Scripting::Result_deprecated< void > unleash() const
MCAPI ::Scripting::Result_deprecated<::std::optional<::std::string > > getLeashHolderActorId() const
MCAPI ::Scripting::Result_deprecated< bool > getIsLeashed() const
MCAPI ::Scripting::Result_deprecated< float > getHardDistance() const
static MCAPI char const *& ComponentId()
MCAPI ::Scripting::Result_deprecated< float > getSoftDistance() const
MCAPI ::Scripting::Result_deprecated< ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActor > > > getLeashHolder() const
MCAPI ::Scripting::Result_deprecated< bool > getCanBeStolen() const
MCAPI ::Scripting::Result_deprecated< void > leashTo(::ScriptModuleMinecraft::ScriptActor &scriptLeashHolder) const
static MCAPI ::Scripting::ClassBinding bind(::ScriptModuleMinecraft::ScriptComponentTypeEnumBuilder &componentTypeEnumBuilder)
MCAPI ::Scripting::Result_deprecated< float > getMaxDistance() const