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#include "mc/world/level/block/BlockDescriptor.h"
10
11// auto generated forward declare list
12// clang-format off
13class Actor;
14class Block;
15class ComponentItem;
16class HashedString;
17class ItemStack;
18class SemVersion;
19namespace SharedTypes::v1_20_50 { struct DiggerItemComponent; }
20// clang-format on
21
22class LegacyOnDigTriggerItemComponent : public ::LegacyTriggerItemComponent {
23public:
24 // LegacyOnDigTriggerItemComponent inner types declare
25 // clang-format off
27 // clang-format on
28
29 // LegacyOnDigTriggerItemComponent inner types define
30 struct DiggerBlockDefinitionTrigger {
31 public:
32 // member variables
33 // NOLINTBEGIN
34 ::ll::TypedStorage<8, 176, ::BlockDescriptor> filter;
35 ::ll::TypedStorage<8, 56, ::DefinitionTrigger> onDig;
36 // NOLINTEND
37
38 public:
39 // prevent constructor by default
40 DiggerBlockDefinitionTrigger& operator=(DiggerBlockDefinitionTrigger const&);
41 DiggerBlockDefinitionTrigger();
42
43 public:
44 // member functions
45 // NOLINTBEGIN
46 MCAPI DiggerBlockDefinitionTrigger(::LegacyOnDigTriggerItemComponent::DiggerBlockDefinitionTrigger const&);
47 // NOLINTEND
48
49 public:
50 // constructor thunks
51 // NOLINTBEGIN
53 // NOLINTEND
54 };
55
56public:
57 // member variables
58 // NOLINTBEGIN
59 ::ll::TypedStorage<1, 1, bool> mCanUseOnDig;
60 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnMineBlockSubscription;
61 ::ll::TypedStorage<8, 64, ::std::optional<::DefinitionTrigger>> mOnDigDefault;
62 ::ll::TypedStorage<8, 24, ::std::vector<::LegacyOnDigTriggerItemComponent::DiggerBlockDefinitionTrigger>>
63 mOnDigTriggers;
64 // NOLINTEND
65
66public:
67 // prevent constructor by default
68 LegacyOnDigTriggerItemComponent();
69
70public:
71 // virtual functions
72 // NOLINTBEGIN
73 virtual void handleVersionBasedInitialization(::SemVersion const& originalJsonVersion) /*override*/;
74
75 virtual void _initializeComponent(::ComponentItem& owner) /*override*/;
76 // NOLINTEND
77
78public:
79 // member functions
80 // NOLINTBEGIN
81 MCAPI explicit LegacyOnDigTriggerItemComponent(
82 ::SharedTypes::v1_20_50::DiggerItemComponent const& diggerComponentData
83 );
84
85 MCAPI void _onMineBlock(bool& result, ::ItemStack& item, ::Block const& block, int x, int y, int z, ::Actor& owner);
86 // NOLINTEND
87
88public:
89 // static functions
90 // NOLINTBEGIN
91 MCAPI static ::HashedString const& getIdentifier();
92 // NOLINTEND
93
94public:
95 // constructor thunks
96 // NOLINTBEGIN
97 MCAPI void* $ctor(::SharedTypes::v1_20_50::DiggerItemComponent const& diggerComponentData);
98 // NOLINTEND
99
100public:
101 // virtual function thunks
102 // NOLINTBEGIN
103 MCAPI void $handleVersionBasedInitialization(::SemVersion const& originalJsonVersion);
104
105 MCAPI void $_initializeComponent(::ComponentItem& owner);
106
107
108 // NOLINTEND
109
110public:
111 // vftables
112 // NOLINTBEGIN
113 MCNAPI static void** $vftable();
114 // NOLINTEND
115};
Definition Actor.h:125
Definition Block.h:69
Definition ComponentItem.h:55
Definition HashedString.h:5
Definition ItemStack.h:35
static MCAPI void ** $vftable()
Definition LegacyTriggerItemComponent.h:18
Definition SemVersion.h:15
Definition LegacyOnDigTriggerItemComponent.h:30
Definition DiggerItemComponent.h:16