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
virtual
bool
isNetworkComponent()
const
/*override*/
;
38
39
virtual ::std::unique_ptr<::CompoundTag> buildNetworkTag(
::cereal::ReflectionCtx
const
&
ctx
)
const
/*override*/
;
40
41
virtual
bool
initializeFromNetwork(
::CompoundTag
const
& tag,
::cereal::ReflectionCtx
const
&
ctx
)
/*override*/
;
42
43
virtual
~OnUseOn
()
/*override*/
=
default
;
44
// NOLINTEND
45
46
public
:
47
// static functions
48
// NOLINTBEGIN
49
MCAPI static ::HashedString
const
& getIdentifier();
50
// NOLINTEND
51
52
public
:
53
// virtual function thunks
54
// NOLINTBEGIN
55
MCFOLD
bool
$isNetworkComponent()
const
;
56
57
MCAPI ::std::unique_ptr<::CompoundTag> $buildNetworkTag(
::cereal::ReflectionCtx
const
&
ctx
)
const
;
58
59
MCAPI
bool
$initializeFromNetwork(
::CompoundTag
const
& tag,
::cereal::ReflectionCtx
const
&
ctx
);
60
61
62
// NOLINTEND
63
64
public
:
65
// vftables
66
// NOLINTBEGIN
67
MCNAPI
static
void
**
$vftable
();
68
69
MCNAPI
static
void
**
$vftableForDispatchingPublisherBase
();
70
71
MCNAPI
static
void
**
$vftableForConnector
();
72
// NOLINTEND
73
};
74
75
}
// namespace PublisherItemComponent
Actor
Definition
Actor.h:105
Bedrock::PubSub::Publisher
Definition
Publisher.h:8
BlockPos
Definition
BlockPos.h:19
CompoundTag
Definition
CompoundTag.h:23
HashedString
Definition
HashedString.h:5
ItemComponent
Definition
ItemComponent.h:16
ItemStack
Definition
ItemStack.h:26
Vec3
Definition
Vec3.h:10
Bedrock::PubSub::ThreadModel::SingleThreaded
Definition
SingleThreaded.h:7
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
mc
world
item
components
publisher_item_component
OnUseOn.h
Generated on
for LeviLamina by
1.16.1