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