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
22public:
23 // prevent constructor by default
25
26public:
27 // virtual functions
28 // NOLINTBEGIN
29 // vIndex: 0
30 virtual ~ScriptItemCooldownComponent() /*override*/ = default;
31 // NOLINTEND
32
33public:
34 // member functions
35 // NOLINTBEGIN
39 );
40
41 MCNAPI ::Scripting::Result_deprecated<::std::string> getCooldownCategory();
42
43 MCNAPI ::Scripting::Result_deprecated<int> getCooldownTicks();
44
45 MCNAPI ::Scripting::Result_deprecated<int>
47
48 MCNAPI ::Scripting::Result_deprecated<bool> isCooldownCategory(::std::string const& category);
49
50 MCNAPI ::Scripting::Result_deprecated<void> startCooldown(::ScriptModuleMinecraft::ScriptPlayer& scriptPlayer);
51 // NOLINTEND
52
53public:
54 // static functions
55 // NOLINTBEGIN
56 MCNAPI static ::Scripting::ClassBinding
58 // NOLINTEND
59
60public:
61 // constructor thunks
62 // NOLINTBEGIN
63 MCNAPI void* $ctor(
66 );
67 // NOLINTEND
68
69public:
70 // vftables
71 // NOLINTBEGIN
72 MCNAPI static void** $vftable();
73 // NOLINTEND
74};
75
76} // namespace ScriptModuleMinecraft
Definition ScriptComponentTypeEnumBuilder.h:16
Definition ScriptItemComponent.h:18
Definition ScriptItemCooldownComponent.h:21
MCAPI ::Scripting::Result_deprecated< bool > isCooldownCategory(::std::string const &category)
MCAPI ScriptItemCooldownComponent(::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemStack > item, ::Scripting::WeakLifetimeScope const &scope)
MCAPI void * $ctor(::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemStack > item, ::Scripting::WeakLifetimeScope const &scope)
MCAPI ::Scripting::Result_deprecated< int > getCooldownTicksRemaining(::ScriptModuleMinecraft::ScriptPlayer &scriptPlayer)
static MCAPI ::Scripting::ClassBinding bind(::ScriptModuleMinecraft::ScriptComponentTypeEnumBuilder &componentTypeEnumBuilder)
MCAPI ::Scripting::Result_deprecated< int > getCooldownTicks()
MCAPI ::Scripting::Result_deprecated< void > startCooldown(::ScriptModuleMinecraft::ScriptPlayer &scriptPlayer)
MCAPI ::Scripting::Result_deprecated<::std::string > getCooldownCategory()
Definition ScriptPlayer.h:50
Definition StrongTypedObjectHandle.h:8
Definition WeakLifetimeScope.h:7