LeviLamina
Loading...
Searching...
No Matches
LegacyOnConsumeTriggerItemComponent.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;
17namespace Bedrock::PubSub { class Subscription; }
18// clang-format on
19
20class LegacyOnConsumeTriggerItemComponent : public ::LegacyTriggerItemComponent {
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnConsumeSubscription;
25 ::ll::TypedStorage<8, 64, ::std::optional<::DefinitionTrigger>> mOnConsumeTrigger;
26 // NOLINTEND
27
28public:
29 // prevent constructor by default
30 LegacyOnConsumeTriggerItemComponent();
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 virtual void _initializeComponent(::ComponentItem& owner) /*override*/;
36
37 virtual ~LegacyOnConsumeTriggerItemComponent() /*override*/ = default;
38 // NOLINTEND
39
40public:
41 // member functions
42 // NOLINTBEGIN
43 MCAPI explicit LegacyOnConsumeTriggerItemComponent(::LegacyOnConsumeTriggerItemComponentData&& data);
44
45 MCAPI void _consume(::ItemStack const&, ::ItemStack& item, ::Actor& actor);
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(::LegacyOnConsumeTriggerItemComponentData&& data);
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:105
Definition Subscription.h:10
Definition ComponentItem.h:55
Definition HashedString.h:5
Definition ItemStack.h:26
static MCAPI void ** $vftable()
Definition LegacyTriggerItemComponent.h:17
Definition LegacyOnConsumeTriggerItemComponentData.h:8