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
12
class
Actor
;
13
class
DefinitionTrigger
;
14
class
HashedString
;
15
class
ItemStack
;
16
class
Mob
;
17
struct
LegacyOnHurtActorTriggerItemComponentData
;
18
namespace
Bedrock::PubSub {
class
Subscription; }
19
// clang-format on
20
21
class
LegacyOnHurtActorTriggerItemComponent
:
public
::LegacyTriggerItemComponent
{
22
public
:
23
// member variables
24
// NOLINTBEGIN
25
::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnHurtActorSubscription;
26
::ll::TypedStorage<8, 64, ::std::optional<::DefinitionTrigger>> mOnHurtActor;
27
// NOLINTEND
28
29
public
:
30
// prevent constructor by default
31
LegacyOnHurtActorTriggerItemComponent
();
32
33
public
:
34
// virtual functions
35
// NOLINTBEGIN
36
// vIndex: 7
37
virtual
void
_initializeComponent()
/*override*/
;
38
39
// vIndex: 0
40
virtual
~LegacyOnHurtActorTriggerItemComponent
()
/*override*/
=
default
;
41
// NOLINTEND
42
43
public
:
44
// member functions
45
// NOLINTBEGIN
46
MCAPI
explicit
LegacyOnHurtActorTriggerItemComponent
(
::LegacyOnHurtActorTriggerItemComponentData
&& componentData);
47
48
MCAPI
void
_onHurtActor(
int
& durabilityDamage,
::ItemStack
& item,
::Actor
& actor,
::Mob
& attacker);
49
// NOLINTEND
50
51
public
:
52
// static functions
53
// NOLINTBEGIN
54
MCAPI static ::HashedString
const
& getIdentifier();
55
// NOLINTEND
56
57
public
:
58
// constructor thunks
59
// NOLINTBEGIN
60
MCAPI
void
* $ctor(
::LegacyOnHurtActorTriggerItemComponentData
&& componentData);
61
// NOLINTEND
62
63
public
:
64
// virtual function thunks
65
// NOLINTBEGIN
66
MCAPI
void
$_initializeComponent();
67
// NOLINTEND
68
69
public
:
70
// vftables
71
// NOLINTBEGIN
72
MCNAPI
static
void
**
$vftable
();
73
// NOLINTEND
74
};
Actor
Definition
Actor.h:103
DefinitionTrigger
Definition
DefinitionTrigger.h:11
HashedString
Definition
HashedString.h:5
ItemStack
Definition
ItemStack.h:25
LegacyOnHurtActorTriggerItemComponent
Definition
LegacyOnHurtActorTriggerItemComponent.h:21
LegacyOnHurtActorTriggerItemComponent::$vftable
static MCAPI void ** $vftable()
LegacyTriggerItemComponent
Definition
LegacyTriggerItemComponent.h:17
Mob
Definition
Mob.h:47
LegacyOnHurtActorTriggerItemComponentData
Definition
LegacyOnHurtActorTriggerItemComponentData.h:5
src
mc
world
item
components
LegacyOnHurtActorTriggerItemComponent.h
Generated on Fri Jun 13 2025 05:05:09 for LeviLamina by
1.12.0