LeviLamina
Loading...
Searching...
No Matches
OnUseOn.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated inclusion list
6
#include "mc/deps/core/utility/pub_sub/Publisher.h"
7
#include "mc/world/item/components/ItemComponent.h"
8
9
// auto generated forward declare list
10
// clang-format off
11
class
Actor
;
12
class
BlockPos
;
13
class
CompoundTag
;
14
class
HashedString
;
15
class
ItemStack
;
16
class
Vec3
;
17
namespace
Bedrock::PubSub::ThreadModel {
struct
SingleThreaded; }
18
namespace
cereal {
struct
ReflectionCtx; }
19
// clang-format on
20
21
namespace
PublisherItemComponent {
22
23
struct
OnUseOn
:
public
::ItemComponent
,
24
public
::Bedrock::PubSub::Publisher
<
25
void(bool&, ::ItemStack const&, ::ItemStack&, ::Actor&, ::BlockPos, uchar, ::Vec3 const&),
26
::Bedrock::PubSub::ThreadModel::SingleThreaded,
27
0> {
28
public
:
29
// member variables
30
// NOLINTBEGIN
31
::ll::TypedStorage<1, 1, bool> mAutoSucceedOnClient;
32
// NOLINTEND
33
34
public
:
35
// virtual functions
36
// NOLINTBEGIN
37
// vIndex: 3
38
virtual
bool
isNetworkComponent()
const
/*override*/
;
39
40
// vIndex: 4
41
virtual ::std::unique_ptr<::CompoundTag> buildNetworkTag(
::cereal::ReflectionCtx
const
&
ctx
)
const
/*override*/
;
42
43
// vIndex: 5
44
virtual
bool
initializeFromNetwork(
::CompoundTag
const
& tag,
::cereal::ReflectionCtx
const
&
ctx
)
/*override*/
;
45
46
// vIndex: 0
47
virtual
~OnUseOn
()
/*override*/
=
default
;
48
// NOLINTEND
49
50
public
:
51
// static functions
52
// NOLINTBEGIN
53
MCAPI static ::HashedString
const
& getIdentifier();
54
// NOLINTEND
55
56
public
:
57
// virtual function thunks
58
// NOLINTBEGIN
59
MCFOLD
bool
$isNetworkComponent()
const
;
60
61
MCAPI ::std::unique_ptr<::CompoundTag> $buildNetworkTag(
::cereal::ReflectionCtx
const
&
ctx
)
const
;
62
63
MCAPI
bool
$initializeFromNetwork(
::CompoundTag
const
& tag,
::cereal::ReflectionCtx
const
&
ctx
);
64
// NOLINTEND
65
66
public
:
67
// vftables
68
// NOLINTBEGIN
69
MCNAPI
static
void
**
$vftable
();
70
71
MCNAPI
static
void
**
$vftableForDispatchingPublisherBase
();
72
73
MCNAPI
static
void
**
$vftableForConnector
();
74
// NOLINTEND
75
};
76
77
}
// namespace PublisherItemComponent
Actor
Definition
Actor.h:102
Bedrock::PubSub::Publisher
Definition
Publisher.h:8
BlockPos
Definition
BlockPos.h:17
CompoundTag
Definition
CompoundTag.h:13
HashedString
Definition
HashedString.h:5
ItemComponent
Definition
ItemComponent.h:16
ItemStack
Definition
ItemStack.h:23
Vec3
Definition
Vec3.h:10
PublisherItemComponent::OnUseOn
Definition
OnUseOn.h:27
PublisherItemComponent::OnUseOn::$vftable
static MCAPI void ** $vftable()
PublisherItemComponent::OnUseOn::$vftableForConnector
static MCAPI void ** $vftableForConnector()
PublisherItemComponent::OnUseOn::$vftableForDispatchingPublisherBase
static MCAPI void ** $vftableForDispatchingPublisherBase()
cereal::ReflectionCtx
Definition
ReflectionCtx.h:11
ctx
Definition
ctx.h:5
src-server
mc
world
item
components
publisher_item_component
OnUseOn.h
Generated on Tue Oct 28 2025 05:32:35 for LeviLamina by
1.12.0