LeviLamina
Loading...
Searching...
No Matches
ScriptItemCooldownComponent.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/runtime/Result.h"
8#include "mc/deps/scripting/runtime/Result_deprecated.h"
9#include "mc/scripting/modules/minecraft/items/components/ScriptItemComponent.h"
10
11// auto generated forward declare list
12// clang-format off
13namespace ScriptModuleMinecraft { class ScriptComponentTypeEnumBuilder; }
14namespace ScriptModuleMinecraft { class ScriptPlayer; }
15// clang-format on
16
17namespace ScriptModuleMinecraft {
18
20public:
21 // virtual functions
22 // NOLINTBEGIN
23 // vIndex: 0
24 virtual ~ScriptItemCooldownComponent() /*override*/ = default;
25 // NOLINTEND
26
27public:
28 // member functions
29 // NOLINTBEGIN
30 MCAPI ::Scripting::Result_deprecated<::std::string> getCooldownCategory();
31
32 MCAPI ::Scripting::Result_deprecated<int> getCooldownTicks();
33
34 MCAPI ::Scripting::Result_deprecated<int>
35 getCooldownTicksRemaining(::ScriptModuleMinecraft::ScriptPlayer& scriptPlayer);
36
37 MCAPI ::Scripting::Result_deprecated<bool> isCooldownCategory(::std::string const& category);
38
39 MCAPI ::Scripting::Result<void> startCooldown(::ScriptModuleMinecraft::ScriptPlayer& scriptPlayer);
40 // NOLINTEND
41
42public:
43 // static functions
44 // NOLINTBEGIN
45 MCAPI static ::Scripting::ClassBindingBuilder<::ScriptModuleMinecraft::ScriptItemCooldownComponent>
46 bind(::ScriptModuleMinecraft::ScriptComponentTypeEnumBuilder& componentTypeEnumBuilder);
47 // NOLINTEND
48
49public:
50 // destructor thunk
51 // NOLINTBEGIN
52
53 // NOLINTEND
54
55public:
56 // vftables
57 // NOLINTBEGIN
58 MCAPI static void** $vftable();
59 // NOLINTEND
60};
61
62} // namespace ScriptModuleMinecraft
Definition ScriptComponentTypeEnumBuilder.h:16
Definition ScriptItemComponent.h:11
Definition ScriptItemCooldownComponent.h:19
Definition ScriptPlayer.h:44