LeviLamina
Loading...
Searching...
No Matches
ScriptHealthComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/scripting/runtime/Result.h"
7#include "mc/deps/scripting/runtime/Result_deprecated.h"
8#include "mc/scripting/modules/minecraft/components/AttributeScriptActorComponent.h"
9
10// auto generated forward declare list
11// clang-format off
12namespace ScriptModuleMinecraft { struct ScriptInvalidActorError; }
13namespace Scripting { struct ArgumentOutOfBoundsError; }
14namespace Scripting { struct ClassBinding; }
15// clang-format on
16
17namespace ScriptModuleMinecraft {
18
20public:
21 // virtual functions
22 // NOLINTBEGIN
23 virtual ::Scripting::Result_deprecated<bool> setCurrent(float const& value) const /*override*/;
24
25 virtual ::Scripting::
26 Result<bool, ::ScriptModuleMinecraft::ScriptInvalidActorError, ::Scripting::ArgumentOutOfBoundsError>
27 setCurrentV2(float const& value) const /*override*/;
28
29 virtual ::Scripting::Result_deprecated<void> resetToMinValue() const /*override*/;
30
31 virtual ::Scripting::Result_deprecated<void> resetToMaxValue() const /*override*/;
32
33 virtual ::Scripting::Result_deprecated<void> resetToDefaultValue() const /*override*/;
34
35 virtual ~ScriptHealthComponent() /*override*/ = default;
36 // NOLINTEND
37
38public:
39 // member functions
40 // NOLINTBEGIN
41 MCAPI void notifyHealthChange(float oldValue, float newValue) const;
42 // NOLINTEND
43
44public:
45 // static functions
46 // NOLINTBEGIN
47 MCAPI static ::Scripting::ClassBinding bind();
48 // NOLINTEND
49
50public:
51 // virtual function thunks
52 // NOLINTBEGIN
53 MCAPI ::Scripting::Result_deprecated<bool> $setCurrent(float const& value) const;
54
55 MCAPI ::Scripting::
56 Result<bool, ::ScriptModuleMinecraft::ScriptInvalidActorError, ::Scripting::ArgumentOutOfBoundsError>
57 $setCurrentV2(float const& value) const;
58
59 MCAPI ::Scripting::Result_deprecated<void> $resetToMinValue() const;
60
61 MCAPI ::Scripting::Result_deprecated<void> $resetToMaxValue() const;
62
63 MCAPI ::Scripting::Result_deprecated<void> $resetToDefaultValue() const;
64
65
66 // NOLINTEND
67
68public:
69 // vftables
70 // NOLINTBEGIN
71 MCNAPI static void** $vftable();
72 // NOLINTEND
73};
74
75} // namespace ScriptModuleMinecraft
Definition AttributeScriptActorComponent.h:20
Definition ScriptHealthComponent.h:19
Definition ScriptInvalidActorError.h:18
Definition ArgumentOutOfBoundsError.h:15
Definition ClassBinding.h:19