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/lifetime_registry/StrongTypedObjectHandle.h"
7#include "mc/deps/scripting/runtime/Result_deprecated.h"
8#include "mc/scripting/modules/minecraft/items/components/ScriptItemComponent.h"
9
10// auto generated forward declare list
11// clang-format off
12namespace ScriptModuleMinecraft { class ScriptComponentTypeEnumBuilder; }
13namespace ScriptModuleMinecraft { class ScriptItemStack; }
14namespace ScriptModuleMinecraft { class ScriptPlayer; }
15namespace Scripting { class WeakLifetimeScope; }
16namespace Scripting { struct ClassBinding; }
17// clang-format on
18
19namespace ScriptModuleMinecraft {
20
21class ScriptItemCooldownComponent : public ::ScriptModuleMinecraft::ScriptItemComponent {
22public:
23 // prevent constructor by default
24 ScriptItemCooldownComponent();
25
26public:
27 // virtual functions
28 // NOLINTBEGIN
29 virtual ~ScriptItemCooldownComponent() /*override*/ = default;
30 // NOLINTEND
31
32public:
33 // member functions
34 // NOLINTBEGIN
35 MCAPI ScriptItemCooldownComponent(
38 );
39
40 MCAPI ::Scripting::Result_deprecated<::std::string> getCooldownCategory();
41
42 MCAPI ::Scripting::Result_deprecated<int> getCooldownTicks();
43
44 MCAPI ::Scripting::Result_deprecated<int>
45 getCooldownTicksRemaining(::ScriptModuleMinecraft::ScriptPlayer& scriptPlayer);
46
47 MCAPI ::Scripting::Result_deprecated<bool> isCooldownCategory(::std::string const& category);
48
49 MCAPI ::Scripting::Result_deprecated<void> startCooldown(::ScriptModuleMinecraft::ScriptPlayer& scriptPlayer);
50 // NOLINTEND
51
52public:
53 // static functions
54 // NOLINTBEGIN
55 MCAPI static ::Scripting::ClassBinding
56 bind(::ScriptModuleMinecraft::ScriptComponentTypeEnumBuilder& componentTypeEnumBuilder);
57 // NOLINTEND
58
59public:
60 // constructor thunks
61 // NOLINTBEGIN
62 MCAPI void* $ctor(
65 );
66 // NOLINTEND
67
68public:
69 // vftables
70 // NOLINTBEGIN
71 MCNAPI static void** $vftable();
72 // NOLINTEND
73};
74
75} // namespace ScriptModuleMinecraft
Definition ScriptComponentTypeEnumBuilder.h:17
Definition ScriptItemComponent.h:20
Definition ScriptItemStack.h:35
Definition ScriptPlayer.h:54
Definition StrongTypedObjectHandle.h:8
Definition WeakLifetimeScope.h:7
Definition ClassBinding.h:19