LeviLamina
Loading...
Searching...
No Matches
LegacyOnHitBlockTriggerItemComponent.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 Block;
13class BlockPos;
14class ComponentItem;
15class HashedString;
16class ItemStack;
17class Mob;
19// clang-format on
20
21class LegacyOnHitBlockTriggerItemComponent : public ::LegacyTriggerItemComponent {
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnHitBlockSubscription;
26 ::ll::TypedStorage<8, 64, ::std::optional<::DefinitionTrigger>> mOnHitBlock;
27 // NOLINTEND
28
29public:
30 // prevent constructor by default
31 LegacyOnHitBlockTriggerItemComponent();
32
33public:
34 // virtual functions
35 // NOLINTBEGIN
36 virtual void _initializeComponent(::ComponentItem& owner) /*override*/;
37
38 virtual ~LegacyOnHitBlockTriggerItemComponent() /*override*/ = default;
39 // NOLINTEND
40
41public:
42 // member functions
43 // NOLINTBEGIN
44 MCAPI explicit LegacyOnHitBlockTriggerItemComponent(::LegacyOnHitBlockTriggerItemComponentData&& componentData);
45
46 MCAPI void _onHitBlock(::ItemStack& item, ::Block const&, ::BlockPos const& blockPos, ::Mob& attacker);
47 // NOLINTEND
48
49public:
50 // static functions
51 // NOLINTBEGIN
52 MCAPI static ::HashedString const& getIdentifier();
53 // NOLINTEND
54
55public:
56 // constructor thunks
57 // NOLINTBEGIN
58 MCAPI void* $ctor(::LegacyOnHitBlockTriggerItemComponentData&& componentData);
59 // NOLINTEND
60
61public:
62 // virtual function thunks
63 // NOLINTBEGIN
64 MCAPI void $_initializeComponent(::ComponentItem& owner);
65
66
67 // NOLINTEND
68
69public:
70 // vftables
71 // NOLINTBEGIN
72 MCNAPI static void** $vftable();
73 // NOLINTEND
74};
Definition BlockPos.h:19
Definition Block.h:43
Definition ComponentItem.h:54
Definition HashedString.h:5
Definition ItemStack.h:26
static MCAPI void ** $vftable()
Definition LegacyTriggerItemComponent.h:17
Definition Mob.h:51
Definition LegacyOnHitBlockTriggerItemComponentData.h:8