Skip to content
LeviMC
English
AutoLightDark
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/script_core/runtime/scripting/Result.h"
7#include "mc/deps/script_core/runtime/scripting/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 // NOLINTEND
35
36public:
37 // member functions
38 // NOLINTBEGIN
39 MCNAPI void notifyHealthChange(float const oldValue, float const newValue) const;
40 // NOLINTEND
41
42public:
43 // static functions
44 // NOLINTBEGIN
45 MCNAPI static ::Scripting::ClassBinding bind();
46 // NOLINTEND
47
48public:
49 // static variables
50 // NOLINTBEGIN
51 MCNAPI static char const*& ComponentId();
52 // NOLINTEND
53
54public:
55 // virtual function thunks
56 // NOLINTBEGIN
57 MCNAPI ::Scripting::Result_deprecated<bool> $setCurrent(float const& value) const;
58
59 MCNAPI ::Scripting::
60 Result<bool, ::ScriptModuleMinecraft::ScriptInvalidActorError, ::Scripting::ArgumentOutOfBoundsError>
61 $setCurrentV2(float const& value) const;
62
63 MCNAPI ::Scripting::Result_deprecated<void> $resetToMinValue() const;
64
65 MCNAPI ::Scripting::Result_deprecated<void> $resetToMaxValue() const;
66
67 MCNAPI ::Scripting::Result_deprecated<void> $resetToDefaultValue() const;
68
69
70 // NOLINTEND
71};
72
73} // namespace ScriptModuleMinecraft
Definition AttributeScriptActorComponent.h:20
Definition ScriptHealthComponent.h:19
MCAPI ::Scripting::Result_deprecated< bool > $setCurrent(float const &value) const
MCAPI ::Scripting::Result< bool, ::ScriptModuleMinecraft::ScriptInvalidActorError, ::Scripting::ArgumentOutOfBoundsError > $setCurrentV2(float const &value) const
static MCAPI char const *& ComponentId()
MCAPI ::Scripting::Result_deprecated< void > $resetToMaxValue() const
MCAPI ::Scripting::Result_deprecated< void > $resetToMinValue() const
static MCAPI ::Scripting::ClassBinding bind()
MCAPI void notifyHealthChange(float const oldValue, float const newValue) const
MCAPI ::Scripting::Result_deprecated< void > $resetToDefaultValue() const
Definition ScriptInvalidActorError.h:18
Definition ArgumentOutOfBoundsError.h:10
Definition ClassBinding.h:10