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;
16namespace SharedTypes::Legacy { struct OnConsumeTriggerItemComponent; }
17// clang-format on
18
19class LegacyOnConsumeTriggerItemComponent : public ::LegacyTriggerItemComponent {
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnConsumeSubscription;
24 ::ll::TypedStorage<8, 64, ::std::optional<::DefinitionTrigger>> mOnConsumeTrigger;
25 // NOLINTEND
26
27public:
28 // prevent constructor by default
29 LegacyOnConsumeTriggerItemComponent();
30
31public:
32 // virtual functions
33 // NOLINTBEGIN
34 virtual void _initializeComponent(::ComponentItem& owner) /*override*/;
35 // NOLINTEND
36
37public:
38 // member functions
39 // NOLINTBEGIN
40 MCAPI explicit LegacyOnConsumeTriggerItemComponent(::SharedTypes::Legacy::OnConsumeTriggerItemComponent&& data);
41
42 MCAPI void _consume(::ItemStack const& item, ::ItemStack& actor, ::Actor&);
43 // NOLINTEND
44
45public:
46 // static functions
47 // NOLINTBEGIN
48 MCAPI static ::HashedString const& getIdentifier();
49 // NOLINTEND
50
51public:
52 // constructor thunks
53 // NOLINTBEGIN
55 // NOLINTEND
56
57public:
58 // virtual function thunks
59 // NOLINTBEGIN
60 MCAPI void $_initializeComponent(::ComponentItem& owner);
61
62
63 // NOLINTEND
64
65public:
66 // vftables
67 // NOLINTBEGIN
68 MCNAPI static void** $vftable();
69 // NOLINTEND
70};
Definition Actor.h:125
Definition ComponentItem.h:55
Definition HashedString.h:5
Definition ItemStack.h:35
static MCAPI void ** $vftable()
Definition LegacyTriggerItemComponent.h:18
Definition OnConsumeTriggerItemComponent.h:15