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
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 // virtual functions
45 // NOLINTBEGIN
46 virtual void updateEngineEvent(int& durabilityDamage, ::ItemStack& item, ::Actor&, ::Mob&) const /*override*/;
47
48 virtual bool shouldCancel() const /*override*/;
49 // NOLINTEND
50
51public:
52 // static functions
53 // NOLINTBEGIN
54 MCAPI static ::Scripting::ClassBinding bind();
55 // NOLINTEND
56
57public:
58 // virtual function thunks
59 // NOLINTBEGIN
60 MCAPI void $updateEngineEvent(int& durabilityDamage, ::ItemStack& item, ::Actor&, ::Mob&) const;
61
62 MCFOLD bool $shouldCancel() const;
63
64
65 // NOLINTEND
66
67public:
68 // vftables
69 // NOLINTBEGIN
70 MCNAPI static void** $vftable();
71 // NOLINTEND
72};
73
74} // namespace ScriptModuleMinecraft
Definition Actor.h:125
Definition ItemStack.h:35
Definition Mob.h:57
Definition ScriptActor.h:69
Definition ScriptItemStack.h:32
Definition ScriptCustomComponentPubSubConnectors.h:8
Definition ScriptItemCustomComponentBeforeDurabilityDamageEvent.h:23
Definition ScriptItemCustomComponentBeforeEvent.h:8
Definition ClassBinding.h:19