LeviLamina
Loading...
Searching...
No Matches
LegacyOnUseOnTriggerItemComponent.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 BlockPos;
14class ComponentItem;
15class HashedString;
16class ItemStack;
18class Vec3;
19// clang-format on
20
21class LegacyOnUseOnTriggerItemComponent : public ::LegacyTriggerItemComponent {
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOnUseOnSubscription;
26 ::ll::TypedStorage<8, 64, ::std::optional<::DefinitionTrigger>> mOnUseOnTrigger;
27 // NOLINTEND
28
29public:
30 // prevent constructor by default
31 LegacyOnUseOnTriggerItemComponent();
32
33public:
34 // virtual functions
35 // NOLINTBEGIN
36 virtual void _initializeComponent(::ComponentItem& owner) /*override*/;
37 // NOLINTEND
38
39public:
40 // member functions
41 // NOLINTBEGIN
42 MCAPI explicit LegacyOnUseOnTriggerItemComponent(::OnUseOnItemComponentLegacyFactoryData&& data);
43
44 MCAPI void _useOn(
45 bool& result,
46 ::ItemStack const& currentItemStack,
47 ::ItemStack& entity,
48 ::Actor& pos,
49 ::BlockPos const& face,
50 uchar clickPos,
51 ::Vec3 const&
52 );
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(::OnUseOnItemComponentLegacyFactoryData&& data);
65 // NOLINTEND
66
67public:
68 // virtual function thunks
69 // NOLINTBEGIN
70 MCAPI void $_initializeComponent(::ComponentItem& owner);
71
72
73 // NOLINTEND
74
75public:
76 // vftables
77 // NOLINTBEGIN
78 MCNAPI static void** $vftable();
79 // NOLINTEND
80};
Definition Actor.h:125
Definition BlockPos.h:21
Definition ComponentItem.h:55
Definition HashedString.h:5
Definition ItemStack.h:35
static MCAPI void ** $vftable()
Definition LegacyTriggerItemComponent.h:18
Definition OnUseOnItemComponentLegacyFactoryData.h:18
Definition Vec3.h:10