LeviLamina
Loading...
Searching...
No Matches
ScriptItemCustomComponentBeforeDurabilityDamageEvent.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/scripting/modules/minecraft/events/ScriptCustomComponentPubSubConnectors.h"
8#include "mc/scripting/modules/minecraft/events/ScriptItemCustomComponentBeforeEvent.h"
9
10// auto generated forward declare list
11// clang-format off
12class Actor;
13class ItemStack;
14class Mob;
15namespace ScriptModuleMinecraft { class ScriptActor; }
16namespace ScriptModuleMinecraft { class ScriptItemStack; }
17namespace Scripting { struct ClassBinding; }
18// clang-format on
19
20namespace ScriptModuleMinecraft {
21
22struct ScriptItemCustomComponentBeforeDurabilityDamageEvent
23: public ::ScriptModuleMinecraft::ScriptItemCustomComponentBeforeEvent<int&, ::ItemStack&, ::Actor&, ::Mob&> {
24public:
25 // ScriptItemCustomComponentBeforeDurabilityDamageEvent inner types define
26 using EventConnectorsType =
28
29public:
30 // member variables
31 // NOLINTBEGIN
32 ::ll::TypedStorage<4, 4, int> mDurabilityDamage;
33 ::ll::TypedStorage<
34 8,
35 40,
36 ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemStack>>>
37 mScriptItem;
38 ::ll::TypedStorage<8, 32, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActor>> mHitEntity;
39 ::ll::TypedStorage<8, 32, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActor>>
40 mAttackingEntity;
41 // NOLINTEND
42
43public:
44 // prevent constructor by default
45 ScriptItemCustomComponentBeforeDurabilityDamageEvent&
46 operator=(ScriptItemCustomComponentBeforeDurabilityDamageEvent const&);
47 ScriptItemCustomComponentBeforeDurabilityDamageEvent();
48
49public:
50 // virtual functions
51 // NOLINTBEGIN
52 virtual void updateEngineEvent(int& durabilityDamage, ::ItemStack& item, ::Actor&, ::Mob&) const /*override*/;
53
54 virtual bool shouldCancel() const /*override*/;
55
56 virtual ~ScriptItemCustomComponentBeforeDurabilityDamageEvent() /*override*/;
57 // NOLINTEND
58
59public:
60 // member functions
61 // NOLINTBEGIN
62 MCAPI ScriptItemCustomComponentBeforeDurabilityDamageEvent(
64 );
65
66 MCAPI ScriptItemCustomComponentBeforeDurabilityDamageEvent(
68 );
69 // NOLINTEND
70
71public:
72 // static functions
73 // NOLINTBEGIN
74 MCAPI static ::Scripting::ClassBinding bind();
75 // NOLINTEND
76
77public:
78 // constructor thunks
79 // NOLINTBEGIN
81
83 // NOLINTEND
84
85public:
86 // destructor thunk
87 // NOLINTBEGIN
88 MCAPI void $dtor();
89 // NOLINTEND
90
91public:
92 // virtual function thunks
93 // NOLINTBEGIN
94 MCAPI void $updateEngineEvent(int& durabilityDamage, ::ItemStack& item, ::Actor&, ::Mob&) const;
95
96 MCFOLD bool $shouldCancel() const;
97
98
99 // NOLINTEND
100
101public:
102 // vftables
103 // NOLINTBEGIN
104 MCNAPI static void** $vftable();
105 // NOLINTEND
106};
107
108} // namespace ScriptModuleMinecraft
Definition Actor.h:105
Definition ItemStack.h:26
Definition Mob.h:50
Definition ScriptActor.h:65
Definition ScriptItemStack.h:33
Definition ScriptCustomComponentPubSubConnectors.h:8
Definition ScriptItemCustomComponentBeforeDurabilityDamageEvent.h:23
Definition ScriptItemCustomComponentBeforeEvent.h:8
Definition ClassBinding.h:19