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
12
class
Actor
;
13
class
BlockPos
;
14
class
ComponentItem
;
15
class
HashedString
;
16
class
ItemStack
;
17
class
OnUseOnItemComponentLegacyFactoryData
;
18
class
Vec3
;
19
// clang-format on
20
21
class
LegacyOnUseOnTriggerItemComponent
:
public
::LegacyTriggerItemComponent
{
22
public
:
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
29
public
:
30
// prevent constructor by default
31
LegacyOnUseOnTriggerItemComponent
();
32
33
public
:
34
// virtual functions
35
// NOLINTBEGIN
36
// vIndex: 7
37
virtual
void
_initializeComponent(
::ComponentItem
& owner)
/*override*/
;
38
39
// vIndex: 0
40
virtual
~LegacyOnUseOnTriggerItemComponent
()
/*override*/
=
default
;
41
// NOLINTEND
42
43
public
:
44
// member functions
45
// NOLINTBEGIN
46
MCAPI
explicit
LegacyOnUseOnTriggerItemComponent
(
::OnUseOnItemComponentLegacyFactoryData
&& data);
47
48
MCAPI
void
_useOn(
49
bool
& result,
50
::ItemStack
const
& initialItemStack,
51
::ItemStack
& currentItemStack,
52
::Actor
& entity,
53
::BlockPos
const
& pos,
54
uchar face,
55
::Vec3
const
& clickPos
56
);
57
// NOLINTEND
58
59
public
:
60
// static functions
61
// NOLINTBEGIN
62
MCAPI static ::HashedString
const
& getIdentifier();
63
// NOLINTEND
64
65
public
:
66
// constructor thunks
67
// NOLINTBEGIN
68
MCAPI
void
* $ctor(
::OnUseOnItemComponentLegacyFactoryData
&& data);
69
// NOLINTEND
70
71
public
:
72
// virtual function thunks
73
// NOLINTBEGIN
74
MCAPI
void
$_initializeComponent(
::ComponentItem
& owner);
75
// NOLINTEND
76
77
public
:
78
// vftables
79
// NOLINTBEGIN
80
MCNAPI
static
void
**
$vftable
();
81
// NOLINTEND
82
};
Actor
Definition
Actor.h:102
BlockPos
Definition
BlockPos.h:17
ComponentItem
Definition
ComponentItem.h:53
HashedString
Definition
HashedString.h:5
ItemStack
Definition
ItemStack.h:23
LegacyOnUseOnTriggerItemComponent
Definition
LegacyOnUseOnTriggerItemComponent.h:21
LegacyOnUseOnTriggerItemComponent::$vftable
static MCAPI void ** $vftable()
LegacyTriggerItemComponent
Definition
LegacyTriggerItemComponent.h:17
OnUseOnItemComponentLegacyFactoryData
Definition
OnUseOnItemComponentLegacyFactoryData.h:17
Vec3
Definition
Vec3.h:10
src-server
mc
world
item
components
LegacyOnUseOnTriggerItemComponent.h
Generated on Wed Nov 5 2025 13:13:24 for LeviLamina by
1.12.0