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
23: public ::ScriptModuleMinecraft::ScriptItemCustomComponentBeforeEvent<int&, ::ItemStack&, ::Actor&, ::Mob&> {
24public:
25 // ScriptItemCustomComponentBeforeDurabilityDamageEvent inner types define
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
48
49public:
50 // virtual functions
51 // NOLINTBEGIN
52 // vIndex: 1
53 virtual void updateEngineEvent(int& durabilityDamage, ::ItemStack& item, ::Actor&, ::Mob&) const /*override*/;
54
55 // vIndex: 2
56 virtual bool shouldCancel() const /*override*/;
57
58 // vIndex: 0
60 // NOLINTEND
61
62public:
63 // member functions
64 // NOLINTBEGIN
67 );
68
71 );
72 // NOLINTEND
73
74public:
75 // static functions
76 // NOLINTBEGIN
77 MCAPI static ::Scripting::ClassBinding bind();
78 // NOLINTEND
79
80public:
81 // constructor thunks
82 // NOLINTBEGIN
84
86 // NOLINTEND
87
88public:
89 // destructor thunk
90 // NOLINTBEGIN
91 MCAPI void $dtor();
92 // NOLINTEND
93
94public:
95 // virtual function thunks
96 // NOLINTBEGIN
97 MCAPI void $updateEngineEvent(int& durabilityDamage, ::ItemStack& item, ::Actor&, ::Mob&) const;
98
99 MCFOLD bool $shouldCancel() const;
100 // NOLINTEND
101
102public:
103 // vftables
104 // NOLINTBEGIN
105 MCNAPI static void** $vftable();
106 // NOLINTEND
107};
108
109} // namespace ScriptModuleMinecraft
Definition Actor.h:102
Definition ItemStack.h:23
Definition Mob.h:47
Definition ScriptCustomComponentPubSubConnectors.h:8
Definition ScriptItemCustomComponentBeforeDurabilityDamageEvent.h:23
Definition ScriptItemCustomComponentBeforeEvent.h:8