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 { class ScriptComponentTypeEnumBuilder; }
13namespace ScriptModuleMinecraft { struct ScriptInvalidActorError; }
14namespace Scripting { struct ArgumentOutOfBoundsError; }
15namespace Scripting { struct ClassBinding; }
16// clang-format on
17
18namespace ScriptModuleMinecraft {
19
21public:
22 // virtual functions
23 // NOLINTBEGIN
24 // vIndex: 5
25 virtual ::Scripting::Result_deprecated<bool> setCurrent(float const& value) const /*override*/;
26
27 // vIndex: 6
28 virtual ::Scripting::
29 Result<bool, ::ScriptModuleMinecraft::ScriptInvalidActorError, ::Scripting::ArgumentOutOfBoundsError>
30 setCurrentV2(float const& value) const /*override*/;
31
32 // vIndex: 10
33 virtual ::Scripting::Result_deprecated<void> resetToMinValue() const /*override*/;
34
35 // vIndex: 11
36 virtual ::Scripting::Result_deprecated<void> resetToMaxValue() const /*override*/;
37
38 // vIndex: 12
39 virtual ::Scripting::Result_deprecated<void> resetToDefaultValue() const /*override*/;
40
41 // vIndex: 0
42 virtual ~ScriptHealthComponent() /*override*/ = default;
43 // NOLINTEND
44
45public:
46 // member functions
47 // NOLINTBEGIN
48 MCNAPI void notifyHealthChange(float oldValue, float newValue) const;
49 // NOLINTEND
50
51public:
52 // static functions
53 // NOLINTBEGIN
54 MCNAPI static ::Scripting::ClassBinding
56 // NOLINTEND
57
58public:
59 // static variables
60 // NOLINTBEGIN
61 MCNAPI static char const*& ComponentId();
62 // NOLINTEND
63
64public:
65 // virtual function thunks
66 // NOLINTBEGIN
67 MCNAPI ::Scripting::Result_deprecated<bool> $setCurrent(float const& value) const;
68
69 MCNAPI ::Scripting::
70 Result<bool, ::ScriptModuleMinecraft::ScriptInvalidActorError, ::Scripting::ArgumentOutOfBoundsError>
71 $setCurrentV2(float const& value) const;
72
73 MCNAPI ::Scripting::Result_deprecated<void> $resetToMinValue() const;
74
75 MCNAPI ::Scripting::Result_deprecated<void> $resetToMaxValue() const;
76
77 MCNAPI ::Scripting::Result_deprecated<void> $resetToDefaultValue() const;
78 // NOLINTEND
79
80public:
81 // vftables
82 // NOLINTBEGIN
83 MCNAPI static void** $vftable();
84 // NOLINTEND
85};
86
87} // namespace ScriptModuleMinecraft
Definition AttributeScriptActorComponent.h:19
Definition ScriptComponentTypeEnumBuilder.h:16
Definition ScriptHealthComponent.h:20
MCAPI ::Scripting::Result_deprecated< bool > $setCurrent(float const &value) const
static MCAPI ::Scripting::ClassBinding bind(::ScriptModuleMinecraft::ScriptComponentTypeEnumBuilder &componentTypeEnumBuilder)
static MCAPI char const *& ComponentId()
MCAPI ::Scripting::Result_deprecated< void > $resetToMaxValue() const
MCAPI ::Scripting::Result< bool, ::ScriptModuleMinecraft::ScriptInvalidActorError, ::Scripting::ArgumentOutOfBoundsError > $setCurrentV2(float const &value) const
MCAPI ::Scripting::Result_deprecated< void > $resetToMinValue() const
MCAPI void notifyHealthChange(float oldValue, float newValue) const
MCAPI ::Scripting::Result_deprecated< void > $resetToDefaultValue() const