LeviLamina
Loading...
Searching...
No Matches
LegacyOnHurtActorTriggerItemComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/pub_sub/Subscription.h"
7#include "mc/world/actor/DefinitionTrigger.h"
8#include "mc/world/item/components/LegacyTriggerItemComponent.h"
9
10// auto generated forward declare list
11// clang-format off
12class Actor;
13class ComponentItem;
14class HashedString;
15class ItemStack;
16class Mob;
17namespace SharedTypes::Legacy { struct OnHurtActorTriggerItemComponent; }
18// clang-format on
19
20class LegacyOnHurtActorTriggerItemComponent : public ::LegacyTriggerItemComponent {
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnHurtActorSubscription;
25 ::ll::TypedStorage<8, 64, ::std::optional<::DefinitionTrigger>> mOnHurtActor;
26 // NOLINTEND
27
28public:
29 // prevent constructor by default
30 LegacyOnHurtActorTriggerItemComponent();
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 virtual void _initializeComponent(::ComponentItem& owner) /*override*/;
36 // NOLINTEND
37
38public:
39 // member functions
40 // NOLINTBEGIN
41 MCAPI explicit LegacyOnHurtActorTriggerItemComponent(
43 );
44
45 MCAPI void _onHurtActor(int& durabilityDamage, ::ItemStack& item, ::Actor& actor, ::Mob& attacker);
46 // NOLINTEND
47
48public:
49 // static functions
50 // NOLINTBEGIN
51 MCAPI static ::HashedString const& getIdentifier();
52 // NOLINTEND
53
54public:
55 // constructor thunks
56 // NOLINTBEGIN
57 MCAPI void* $ctor(::SharedTypes::Legacy::OnHurtActorTriggerItemComponent&& componentData);
58 // NOLINTEND
59
60public:
61 // virtual function thunks
62 // NOLINTBEGIN
63 MCAPI void $_initializeComponent(::ComponentItem& owner);
64
65
66 // NOLINTEND
67
68public:
69 // vftables
70 // NOLINTBEGIN
71 MCNAPI static void** $vftable();
72 // NOLINTEND
73};
Definition Actor.h:125
Definition ComponentItem.h:55
Definition HashedString.h:5
Definition ItemStack.h:35
Definition LegacyTriggerItemComponent.h:18
Definition Mob.h:57
Definition OnHurtActorTriggerItemComponent.h:15