LeviLamina
Loading...
Searching...
No Matches
LegacyOnDigTriggerItemComponent.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 Block;
14class ComponentItem;
15class HashedString;
16class ItemStack;
17class SemVersion;
20namespace Bedrock::PubSub { class Subscription; }
21// clang-format on
22
23class LegacyOnDigTriggerItemComponent : public ::LegacyTriggerItemComponent {
24public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<1, 1, bool> mCanUseOnDig;
28 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnMineBlockSubscription;
29 ::ll::TypedStorage<8, 64, ::std::optional<::DefinitionTrigger>> mOnDigDefault;
30 ::ll::TypedStorage<8, 24, ::std::vector<::DiggerBlockDefinitionTrigger>> mOnDigTriggers;
31 // NOLINTEND
32
33public:
34 // prevent constructor by default
35 LegacyOnDigTriggerItemComponent();
36
37public:
38 // virtual functions
39 // NOLINTBEGIN
40 virtual void handleVersionBasedInitialization(::SemVersion const& originalJsonVersion) /*override*/;
41
42 virtual void _initializeComponent(::ComponentItem& owner) /*override*/;
43
44 virtual ~LegacyOnDigTriggerItemComponent() /*override*/;
45 // NOLINTEND
46
47public:
48 // member functions
49 // NOLINTBEGIN
50 MCAPI explicit LegacyOnDigTriggerItemComponent(::LegacyOnDigTriggerItemComponentData&& componentData);
51
52 MCAPI void _onMineBlock(bool& result, ::ItemStack& item, ::Block const& block, int x, int y, int z, ::Actor& owner);
53 // NOLINTEND
54
55public:
56 // static functions
57 // NOLINTBEGIN
58 MCAPI static ::HashedString const& getIdentifier();
59 // NOLINTEND
60
61public:
62 // constructor thunks
63 // NOLINTBEGIN
64 MCAPI void* $ctor(::LegacyOnDigTriggerItemComponentData&& componentData);
65 // NOLINTEND
66
67public:
68 // destructor thunk
69 // NOLINTBEGIN
70 MCAPI void $dtor();
71 // NOLINTEND
72
73public:
74 // virtual function thunks
75 // NOLINTBEGIN
76 MCAPI void $handleVersionBasedInitialization(::SemVersion const& originalJsonVersion);
77
78 MCAPI void $_initializeComponent(::ComponentItem& owner);
79
80
81 // NOLINTEND
82
83public:
84 // vftables
85 // NOLINTBEGIN
86 MCNAPI static void** $vftable();
87 // NOLINTEND
88};
Definition Actor.h:105
Definition Subscription.h:10
Definition Block.h:43
Definition ComponentItem.h:55
Definition HashedString.h:5
Definition ItemStack.h:26
static MCAPI void ** $vftable()
Definition LegacyTriggerItemComponent.h:17
Definition SemVersion.h:15
Definition DiggerBlockDefinitionTrigger.h:9
Definition LegacyOnDigTriggerItemComponentData.h:13