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
ItemStack
;
15
class
Vec3
;
16
namespace
Bedrock::PubSub::ThreadModel {
struct
SingleThreaded
; }
17
namespace
cereal {
struct
ReflectionCtx
; }
18
// clang-format on
19
20
namespace
PublisherItemComponent {
21
22
struct
OnUseOn
:
public
::ItemComponent
,
23
public
::Bedrock::PubSub::Publisher
<
24
void(bool&, ::ItemStack const&, ::ItemStack&, ::Actor&, ::BlockPos, uchar, ::Vec3 const&),
25
::Bedrock::PubSub::ThreadModel::SingleThreaded,
26
0> {
27
public
:
28
// member variables
29
// NOLINTBEGIN
30
::ll::TypedStorage<1, 1, bool> mAutoSucceedOnClient;
31
// NOLINTEND
32
33
public
:
34
// virtual functions
35
// NOLINTBEGIN
36
virtual
bool
isNetworkComponent()
const
/*override*/
;
37
38
virtual ::std::unique_ptr<::CompoundTag> buildNetworkTag(
::cereal::ReflectionCtx
const
&
ctx
)
const
/*override*/
;
39
40
virtual
bool
initializeFromNetwork(
::CompoundTag
const
& tag,
::cereal::ReflectionCtx
const
&
ctx
)
/*override*/
;
41
// NOLINTEND
42
43
public
:
44
// virtual function thunks
45
// NOLINTBEGIN
46
MCFOLD
bool
$isNetworkComponent()
const
;
47
48
MCAPI ::std::unique_ptr<::CompoundTag> $buildNetworkTag(
::cereal::ReflectionCtx
const
&
ctx
)
const
;
49
50
MCAPI
bool
$initializeFromNetwork(
::CompoundTag
const
& tag,
::cereal::ReflectionCtx
const
&
ctx
);
51
52
53
// NOLINTEND
54
55
public
:
56
// vftables
57
// NOLINTBEGIN
58
MCNAPI
static
void
**
$vftable
();
59
60
MCNAPI
static
void
**
$vftableForDispatchingPublisherBase
();
61
62
MCNAPI
static
void
**
$vftableForConnector
();
63
// NOLINTEND
64
};
65
66
}
// namespace PublisherItemComponent
Actor
Definition
Actor.h:125
Bedrock::PubSub::Publisher
Definition
Publisher.h:8
BlockPos
Definition
BlockPos.h:21
CompoundTag
Definition
CompoundTag.h:23
ItemComponent
Definition
ItemComponent.h:17
ItemStack
Definition
ItemStack.h:35
Vec3
Definition
Vec3.h:10
Bedrock::PubSub::ThreadModel::SingleThreaded
Definition
SingleThreaded.h:7
PublisherItemComponent::OnUseOn
Definition
OnUseOn.h:26
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