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
38 virtual ~LegacyOnUseOnTriggerItemComponent() /*override*/ = default;
39 // NOLINTEND
40
41public:
42 // member functions
43 // NOLINTBEGIN
44 MCAPI explicit LegacyOnUseOnTriggerItemComponent(::OnUseOnItemComponentLegacyFactoryData&& data);
45
46 MCAPI void _useOn(
47 bool& result,
48 ::ItemStack const& initialItemStack,
49 ::ItemStack& currentItemStack,
50 ::Actor& entity,
51 ::BlockPos const& pos,
52 uchar face,
53 ::Vec3 const& clickPos
54 );
55 // NOLINTEND
56
57public:
58 // static functions
59 // NOLINTBEGIN
60 MCAPI static ::HashedString const& getIdentifier();
61 // NOLINTEND
62
63public:
64 // constructor thunks
65 // NOLINTBEGIN
66 MCAPI void* $ctor(::OnUseOnItemComponentLegacyFactoryData&& data);
67 // NOLINTEND
68
69public:
70 // virtual function thunks
71 // NOLINTBEGIN
72 MCAPI void $_initializeComponent(::ComponentItem& owner);
73
74
75 // NOLINTEND
76
77public:
78 // vftables
79 // NOLINTBEGIN
80 MCNAPI static void** $vftable();
81 // NOLINTEND
82};
Definition Actor.h:106
Definition BlockPos.h:19
Definition ComponentItem.h:54
Definition HashedString.h:5
Definition ItemStack.h:26
static MCAPI void ** $vftable()
Definition LegacyTriggerItemComponent.h:17
Definition OnUseOnItemComponentLegacyFactoryData.h:17
Definition Vec3.h:10