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 ScriptItemStack; }
13namespace ScriptModuleMinecraft { class ScriptPlayer; }
14namespace Scripting { class WeakLifetimeScope; }
15namespace Scripting { struct ClassBinding; }
16// clang-format on
17
18namespace ScriptModuleMinecraft {
19
20class ScriptItemCooldownComponent : public ::ScriptModuleMinecraft::ScriptItemComponent {
21public:
22 // prevent constructor by default
23 ScriptItemCooldownComponent();
24
25public:
26 // virtual functions
27 // NOLINTBEGIN
28 virtual ~ScriptItemCooldownComponent() /*override*/ = default;
29 // NOLINTEND
30
31public:
32 // member functions
33 // NOLINTBEGIN
34 MCAPI ScriptItemCooldownComponent(
37 );
38
39 MCAPI ::Scripting::Result_deprecated<::std::string> getCooldownCategory();
40
41 MCAPI ::Scripting::Result_deprecated<int> getCooldownTicks();
42
43 MCAPI ::Scripting::Result_deprecated<int>
44 getCooldownTicksRemaining(::ScriptModuleMinecraft::ScriptPlayer& scriptPlayer);
45
46 MCAPI ::Scripting::Result_deprecated<bool> isCooldownCategory(::std::string const& category);
47
48 MCAPI ::Scripting::Result_deprecated<void> startCooldown(::ScriptModuleMinecraft::ScriptPlayer& scriptPlayer);
49 // NOLINTEND
50
51public:
52 // static functions
53 // NOLINTBEGIN
54 MCAPI static ::Scripting::ClassBinding bind();
55 // NOLINTEND
56
57public:
58 // constructor thunks
59 // NOLINTBEGIN
60 MCAPI void* $ctor(
63 );
64 // NOLINTEND
65
66public:
67 // vftables
68 // NOLINTBEGIN
69 MCNAPI static void** $vftable();
70 // NOLINTEND
71};
72
73} // namespace ScriptModuleMinecraft
Definition ScriptItemComponent.h:20
Definition ScriptItemStack.h:32
Definition ScriptPlayer.h:55
Definition StrongTypedObjectHandle.h:8
Definition WeakLifetimeScope.h:7
Definition ClassBinding.h:19